web3-以太坊JSON-RPC客户端-Rust开发

时间:2021-05-27 18:31:33
【文件属性】:
文件名称:web3-以太坊JSON-RPC客户端-Rust开发
文件大小:125KB
文件格式:ZIP
更新时间:2021-05-27 18:31:33
Rust Cryptocurrencies rust-web3以太坊JSON-RPC多传输客户端。 Web3.js库的Rust实现。 文档用法首先,将其添加到您的Cargo.toml中:[d rust-web3以太坊JSON-RPC多传输客户端。 Web3.js库的Rust实现。 文档用法首先,将其添加到Cargo.toml中:[dependencies] web3 = {git =“ https://github.com/tomusdrw/rust-web3”}示例#[tokio :: main] async fn main()- > web3 :: Result {让传输= web3 :: transports :: Http :: new(“ http:// localhost:8545”)?; 令web3 = web3 :: Web3 :: new(transport); println!(“呼叫帐户”。); 让mut account = web3.eth()。accounts()。await ?;
【文件预览】:
rust-web3-master
----.cargo()
--------config(68B)
----rustfmt.toml(16B)
----Cargo.toml(3KB)
----.github()
--------dependabot.yml(404B)
--------workflows()
----src()
--------signing.rs(6KB)
--------error.rs(3KB)
--------contract()
--------confirm.rs(9KB)
--------types()
--------transports()
--------lib.rs(4KB)
--------helpers.rs(5KB)
--------api()
----examples()
--------transport_batch.rs(565B)
--------contract.rs(2KB)
--------contract_log_pubsub.rs(2KB)
--------transport_http.rs(645B)
--------contract_storage.rs(2KB)
--------contracts()
--------res()
--------contract_log_filter.rs(2KB)
--------transport_either.rs(857B)
--------bench.rs(2KB)
--------pubsub.rs(531B)
--------transport_ws.rs(654B)
--------readme.md(260B)
----LICENSE(1KB)
----README.md(4KB)
----.editorconfig(241B)
----.gitignore(31B)
----deny.toml(6KB)

网友评论