Registry / crypto / ethcontract

ethcontract

JSON →
library0.25.8rscratesunverified

Runtime library and proc macro for interacting and generating type-safe bindings to Ethereum smart contracts.

# Cargo.toml [dependencies] ethcontract = "0.25.8"
INSTALL
IMPORT
SIG · ETHCONTRACT
E
ethcontract
cryptorustv0.25.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Contract
use ethcontract::Contract;

Creates a new Ethereum contract instance.

use ethcontract::Contract; fn main() { let contract = Contract::new(); println!("Contract created"); }
Debug
Known issues
gotchaRequires async runtime (e.g., tokio) for contract interactions.
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=0.25.0
Upgrade
Version history
0.25.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
ethcontract — cargo add ethcontract · libregistry