#mocking #ethereum #json-rpc #rpc #json

bin+lib ethock

Lightweight Ethereum JSON RPC Mock written in Rust

2 unstable releases

0.1.0 Feb 5, 2021
0.0.3 Jan 31, 2021

#41 in #mock

39 downloads per month

MIT/Apache

43KB
544 lines

ethock - Ethereum Mock

Lightweight Ethereum JSON RPC Mock written in Rust

Usage

ethock_lib = "x.x.x"
fn main() {
    // Serve in blocking mode
    ethock_lib::server::Entry::new("localhost:8545").serve();

    // Serve in non-blocking mode
    ethock_lib::server::Entry::new("localhost:8545").serve_silent();
}

Dependencies

~15MB
~269K SLoC