NEAR Protocol RPC: Get block effects (1.0.0)

Returns changes in block for given block height or hash over all transactions for all types

Download OpenAPI description
Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get block effects

Request

Returns changes in block for given block height or hash over all transactions for all types

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"block_effects"
paramsobjectrequired

One of multiple possible types

curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "block_effects",
    "params": {
      "block_id": 186561182
    }
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject
errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "block_hash": "string", "changes": [] }, "error": { "code": 0, "message": "string", "data": {} } }