Skip to content

Definitions for standard Ethereum JSONRPC APIs

License

Notifications You must be signed in to change notification settings

bretep/ethereum-jsonrpc

This branch is 7 commits ahead of, 1 commit behind vorot93/ethereum-jsonrpc:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b7a09aa · Sep 8, 2022

History

7 Commits
Jul 24, 2022
Sep 8, 2022
Jul 24, 2022
Aug 3, 2022
Jul 24, 2022
Jul 24, 2022

Repository files navigation

ethereum-jsonrpc

This crate contains definitions for various Ethereum JSONRPC APIs using jsonrpsee framework.

Client usage example

Enable client feature of ethereum-jsonrpc crate.

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 GNU General Public License v3 with Classpath exception

About

Definitions for standard Ethereum JSONRPC APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%