Skip to main content
Version: Next

rbuilder namespace

rbuilder_calculateStateRoot

Calculate the state root on top of the state trie at specified block given a set of change.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "rbuilder_calculateStateRoot",
"params": [block, accountDiff]
}'

rbuilder_getAccount

Get account data

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "rbuilder_getAccount",
"params": [address, block]
}'

rbuilder_getBlockHash

Gets block hash

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "rbuilder_getBlockHash",
"params": [block]
}'

rbuilder_getCodeByHash

Returns bytecode based on hash.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "rbuilder_getCodeByHash",
"params": [hash]
}'