chain_get_block_transfers
This method returns a state root hash at a given Block. If you do not specify a block_identifier, you will receive the highest state root hash.
This method will use 10
Compute Units.
Parameters
block_identifier
- object
the block identifier hash or height [BlockIdentifier]
{
"id": 1,
"jsonrpc": "2.0",
"method": "chain_get_block_transfers",
"params": [
{
"Hash": "2fef51bbf2234c8c2a010924b0e2955d86a7ddcae61bb46a7cc5427b720c8cac"
}
]
}
Returns
api_version
- string
RPC API version
block_hash
- string
hash of the block
{
"jsonrpc": "2.0",
"result": {
"api_version": "1.4.13",
"block_hash": "2fef51bbf2234c8c2a010924b0e2955d86a7ddcae61bb46a7cc5427b720c8cac",
"transfers": [
{
"amount": "595000000000",
"deploy_hash": "3ffbbeacdef5fdbe836776a86e16635df4eff393e68134649730f77a94927073",
"from": "account-hash-700a5119daa68fa162e3e9bf0d366dd54f37af4ff0847f3f57b3562f73621309",
"gas": "0",
"id": null,
"source": "uref-d1d6bcf84a2fce0624d0d612f1ced8a5ec9b938538447433b05fb62e24b6adcc-007",
"target": "uref-5cb40b8867eb1d7c6ecfc34b1d9757faa29cce14f30b0d6faec3b78af8e9df9f-007",
"to": "account-hash-6174cf2e6f8fed1715c9a3bace9c50bfe572eecb763b0ed3f644532616452008"
}
]
},
"id": 1
}
curl https://mainnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id":1,"jsonrpc":"2.0","method":"chain_get_block_transfers","params":[]}'
curl https://testnet.casper.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"id":1,"jsonrpc":"2.0","method":"chain_get_block_transfers","params":[]}'