Skip to main content

starknet_getTransactionStatus RPC Method

Gets the transaction status (possibly reflecting that the tx is still in the mempool, or dropped from it).

Updated on
Mar 18, 2024

starknet_getTransactionStatus RPC Method

Parameters

transaction_hash
string
REQUIRED
The hash of the requested transaction

Returns

result
object
The result object with the following fields:
finality_status
string
The finality status of the transaction, including the case the txn is still in the mempool or failed validation during the block construction phase. Possible values includes: RECEIVED, REJECTED, ACCEPTED_ON_L2 or ACCEPTED_ON_L1
execution_status
string
The execution status of the transaction. Possible values includes: SUCCEEDED or REVERTED
Request
1
curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/' \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '{
5
"id": 1,
6
"jsonrpc": "2.0",
7
"method": "starknet_getTransactionStatus",
8
"params": [
9
"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"
10
]
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free