avm.getTxStatus

Get the status of a transaction sent to the network.

A transaction is said to change an address's balance if either is true:

  • A UTXO that the transaction consumes was at least partially owned by the address.

  • A UTXO that the transaction produces is at least partially owned by the address.

Parameters:

txID - string - A specific transaction ID.

Returned Value:

  • status - string - status is one of:

    • Accepted - string - The transaction is (or will be) accepted by every node

    • Processing - string - The transaction is being voted on by this node

    • Rejected - string - The transaction will never be accepted by any node in the network

    • Unknown - string - The transaction hasn’t been seen by this node

Example Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "status": "Accepted"
  }
}
curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/X \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"avm.getTxStatus",
    "params" :{
        "txID":"2QouvFWUbjuySRxeX5xMbNCuAaKWfbk5FeEa2JmoF85RKLk2dD"
    }
}'

Last updated