tx_status - NEAR Protocol

Returns the transaction status plus the full list of receipts. Available from nearcore 2.14.0; on older nodes use EXPERIMENTAL_tx_status (identical request and response).

Method

tx_status

Parameters

The params object carries:

ParameterExampleDescription
tx_hash"B2dEThkFLWv8y5xjNUSW96NU7mKGyRk8sLh1G8sB8qL9"—
sender_account_id"example.near"—
wait_until"EXECUTED_OPTIMISTIC"—

Example

bashexport NEAR_RPC=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl -X POST "${NEAR_RPC}" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": "getblock.io", "method": "tx_status", "params": {"tx_hash": "B2dEThkFLWv8y5xjNUSW96NU7mKGyRk8sLh1G8sB8qL9", "sender_account_id": "example.near", "wait_until": "EXECUTED_OPTIMISTIC"}}'

Response

json{
    "status": {
        "SuccessValue": ""
    },
    "transaction": {
        "hash": "B2d...",
        "signer_id": "example.near"
    },
    "transaction_outcome": {
        "outcome": {
            "gas_burnt": 2427979134284
        }
    },
    "receipts_outcome": [],
    "receipts": []
}

Response Fields

FieldTypeDescription
statusobjectExecution status of the transaction
transaction_outcomeobjectGas burnt and status
receiptsarrayThe full receipts produced by the transaction
receipts_outcomearrayPer-receipt execution outcomes

Use Cases

  • Full trace: Read a transaction with its complete receipt tree
  • Cross-contract debugging: Follow receipts across contracts

Error Handling

ErrorMessageDescription
-32700 / Parse errorParse errorThe JSON request was malformed
-32601 / Method not foundMethod not foundThe method is unknown or disabled on this node version
HANDLER_ERRORRequested data not foundThe account, block, chunk, or transaction does not exist or is garbage-collected (use an archival node)
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect