Skip to main content

starknet_getTransactionStatus

Returns the transaction status.

Parameters

transaction_hash: (string) [Required] The hash of the requested transaction.

Returns

A transaction status object containing:

  • finality_status: The finality status of the transaction (RECEIVED, REJECTED, ACCEPTED_ON_L2, or ACCEPTED_ON_L1).
  • execution_status: The execution status of the transaction (SUCCEEDED or REVERTED).

Example

Replace YOUR-API-KEY with an API key from your Infura dashboard.

Request

curl https://starknet-mainnet.infura.io/v3/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_getTransactionStatus",
"params": {
"transaction_hash": "0x23b5171f490079d5ba6314ebdce1dd5a1086fc2b07da7f7f51a62bd07671f6f"
},
"id": 0
}'

Response

{
"id": 0,
"jsonrpc": "2.0",
"result": {
"execution_status": "SUCCEEDED",
"finality_status": "ACCEPTED_ON_L2"
}
}