An open API service indexing awesome lists of open source software.

https://github.com/libevm/reth-custom-api-example

Example to extend Reth to include custom APIs
https://github.com/libevm/reth-custom-api-example

Last synced: 28 days ago
JSON representation

Example to extend Reth to include custom APIs

Awesome Lists containing this project

README

        

# reth-custom-api-example

Example to extend Reth to include custom APIs.

This example adds a new custom api `eth_getGasUsedByBlock` to the node.

# Build
```
cargo run -- node --extend-eth-namespace --dev --http --http.api=eth,debug,reth --dev.block-time 12s --datadir /tmp/reth
```

or

```
cargo build --release
./target/release/reth-custom-api-example node --extend-eth-namespace --dev --http --http.api=eth,debug,reth --dev.block-time 12s --datadir /tmp/reth
```

# Test

```
cargo test
```