api
api copied to clipboard
Mapping of database to blockchain data
Replacement of requests to database instead of nodes will unload our node servers and also increase response time to end user. Ir require mapping of database block/transactions data to blockchain format for next methods:
-
eth_getBlockByHash -
eth_getBlockByNumber -
eth_getBlockTransactionCountByHash -
eth_getBlockTransactionCountByNumber -
eth_getCode -
eth_getTransactionByHash -
eth_getTransactionByBlockHashAndIndex -
eth_getTransactionByBlockNumberAndIndex -
eth_getTransactionCount
Getting started is in the file: moonstream/nodes/node_balancer/cmd/db.go