evm.rpc package

Submodules

evm.rpc.server module

A simple JSON-RPC server that only responds to eth_getBlockByNumber and eth_getBlockByHash calls. It uses the LightChain to sync headers as they’re announced and fetches blocks on demand as RPC calls ask for them.

class evm.rpc.server.App(chain)

Bases: aiohttp.web.Application

allowed_methods = ['eth_getBlockByNumber', 'eth_getBlockByHash']
coroutine handle(request)
coroutine run_chain(app)
coroutine stop_chain(app)

Module contents