Wall-Echain :robot:
Wall-Echain is a product for obtaining block information, transaction details, and the latest block height of the Ethereum system through JSON-RPC.
Features :star2:
- Customized RPC server list, retry count, chain ID
- Get detailed information on the Ethereum blockchain
- Query transaction details
- Real-time tracking of the latest block height
Usage :bulb:
-
First, install Wall-Echain
- Cargo.toml
# Cargo.toml [] = "0.1.0" - Cargo add
Cargo add wall-echain
- Cargo.toml
-
Next, you can use the following code to query the latest block height on the ethereum blockchain.
let w = new; if let Some = w.get_latest_number.await -
You can also use the following code to query transaction details by transaction hash.
let w = new; if let Some = w.get_transaction_receipt_for_hash.await -
You can also use the following code to query block information by specifying the block height.
let w = new; if let Some = w.get_transactions_for_block.await
TODO
- Support all JSON-RPC interfaces
Contribution :muscle:
Contributions to the Wall-Echain project are welcome!
License :scroll:
Wall-Echain is licensed under the MIT license, see the LICENSE file for details.