Skip to main content

State Changes

EXPERIMENTAL_changes request type

This endpoint allows you to get state changes on the NEAR blockchain.

Network
Changes TypeRequest body field
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Finality

The latest block with full finality. Highest confidence, with the most confirmation lag.

Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "changes",
  "params": {
    "finality": "final",
    "changes_type": "account_changes",
    "account_ids": [
      "root.near"
    ]
  }
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
changes
params *object
requires finality, changes_type, account_ids
finality *string

Block finality

finalnear-finaloptimistic
changes_type *string

State change selector used by this example

account_changes
account_ids *array

Accounts whose state changes should be returned

itemsstring

NEAR account ID

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires block_hash, changes
block_hash *string

Base58-encoded hash

changes *array
itemsobject
requires cause
cause *object

One of multiple possible types

errorobject
codeinteger
messagestring
dataobject