Open obasekiosa opened 4 days ago
Can I tackle this one?
@arnavchhokra feel free to give it a shot.
ask questions within this thread
Question: for exporting chain data I am supposed to provide the first and the last block, so for fetching it can i use this: https://docs.nethermind.io/interacting/json-rpc-ns/eth#eth_getblockbynumber ?
The relevant function: public ResultWrapper<BlockForRpc> eth_getBlockByNumber(BlockParameter blockParameter, bool returnFullTransactionObjects) { return GetBlock(blockParameter, returnFullTransactionObjects); }
@obasekiosa Could you elaborate why we need this change?
@obasekiosa Could you elaborate why we need this change?
Is there some other fn that i am supposed to use to fetch the blocks?
I read the export chain documentation, it says "Exports the current blockchain into a local file. It optionally takes a first and last block number, in which case it exports only that range of blocks ."
Is your feature request related to a problem? Please describe. https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-admin#admin-exportchain
Allows for the exportation of a range of blocks.