avax.getAtomicTxStatus
Get the status of an atomic transaction sent to the network.
This method will use 10
Compute Units.
Parameters
txID
- string - The transaction ID in hex format.
Returns
Accepted: The transaction is (or will be) accepted by every node. Check the blockHeight
property
Processing: The transaction is being voted on by this node
Dropped: The transaction was dropped by this node because it thought the transaction invalid
Unknown: The transaction hasn’t been seen by this node
2. blockHeight
- string, returned when status is Accepted
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"status": "Accepted",
"blockHeight": "1"
}
}
curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/C/avax \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc":"2.0",
"id" :1,
"method" :"avax.getAtomicTxStatus",
"params" :{
"txID":"2QouvFWUbjuySRxeX5xMbNCuAaKWfbk5FeEa2JmoF85RKLk2dD"
}
}'
curl https://fuji.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/C/avax \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc":"2.0",
"id" :1,
"method" :"avax.getAtomicTxStatus",
""params" :{
"txID":"2QouvFWUbjuySRxeX5xMbNCuAaKWfbk5FeEa2JmoF85RKLk2dD"
}
}'