Transactions
Returns the status code of a contract execution.
https://api.snowtrace.io/api
?module=transaction
&action=getstatus
&txhash=0x61b88fb218c65eb85fc5a2d75be787ad899400aac7e28e2a59207b2ffcdf3f46
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
txhash | the string representing the transaction hash to check the execution status |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"isError":"1",
"errDescription":"execution reverted"
}
}
Tip: The
📖
isError
field returns 0
for successful transactions and 1
for failed transactions.Returns the status code of a transaction execution.
https://api.snowtrace.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0xd109133c0db0245d0e18843845ab01cbf4bdbc70fe900826167157a5032cc53b
&apikey=YourApiKeyToken
Request
Response
Query Parameters
Parameter | Description |
---|---|
txhash | the string representing the transaction hash to check the execution status |
Sample Response
{
"status":"1",
"message":"OK",
"result":{
"status":"0"
}
}
Tip: The
📖
status
field returns 0
for failed transactions and 1
for successful transactions.Last modified 11mo ago