api icon indicating copy to clipboard operation
api copied to clipboard

Mapping of database to blockchain data

Open kompotkot opened this issue 3 years ago • 0 comments

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

kompotkot avatar Mar 21 '22 20:03 kompotkot