Ethereum JSON-RPC multi-transport client. Rust implementation of Web3.js library.
```rust extern crate web3;
use web3::futures::Future;
fn main() { let web3 = web3::Web3::new(web3::transports::Http::new("http://localhost:8545").unwrap()); let accounts = web3.eth().accounts().wait().unwrap();
println!("Accounts: {:?}", accounts); } ```
For more see examples folder.
Into<X>
)debris/ethabi
)U256,H256,Address(H160)
Transaction
from Parity)TransactionReceipt
from Parity)RichBlock
from Parity)Work
from Parity)SyncStats
from Parity)eth_*
eth_*
net_*
web3_*
personal_*
traces_*
parity_*
parity_*
parity_*
[ ] signer_*
[x] Own APIs (Extendable)
rust
let web3 = Web3::new(transport);
web3.api::<CustomNamespace>().custom_method().wait().unwrap()