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

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

#224 in #mocking

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

~16MB
~272K SLoC