Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vorot93/ethereum-jsonrpc
Definitions for standard Ethereum JSONRPC APIs
https://github.com/vorot93/ethereum-jsonrpc
Last synced: 24 days ago
JSON representation
Definitions for standard Ethereum JSONRPC APIs
- Host: GitHub
- URL: https://github.com/vorot93/ethereum-jsonrpc
- Owner: vorot93
- License: mpl-2.0
- Created: 2022-07-24T07:08:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T11:54:45.000Z (about 2 years ago)
- Last Synced: 2024-10-11T01:15:29.328Z (about 1 month ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ethereum-jsonrpc
This crate contains definitions for various Ethereum JSONRPC APIs using [jsonrpsee](https://github.com/paritytech/jsonrpsee) framework.## Client usage example
Enable `client` feature of `ethereum-jsonrpc` crate.```rust,no_run
use ethereum_jsonrpc::EthApiClient;
use jsonrpsee::http_client::HttpClientBuilder;#[tokio::main]
async fn main() {
let client = HttpClientBuilder::default().build("http://localhost:8545").unwrap();let block_number = client.block_number().await.unwrap();
println!("Current block number is {block_number}");
}
```## License
The entire code within this repository is licensed under the [Mozilla Public License v2.0](./LICENSE)