Transactions

Check Contract Execution Status

Returns the status code of a contract execution.
https://api-goerli.etherscan.io/api
?module=transaction
&action=getstatus
&txhash=0x4eca16847cf164ca20f4f1a1bae1fecc3812e78f1d64b3585f185d0eea7fe769
&apikey=YourApiKeyToken
Try this endpoint in your browser
πŸ”—
​
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":"Reverted"
}
}
​
πŸ“–
Tip: The isError field returns 0 for successful transactions and 1 for failed transactions.

Check Transaction Receipt Status

Returns the status code of a transaction execution.
​
πŸ“
Note: Only applicable for post Byzantium Fork transactions.
https://api-goerli.etherscan.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0x04c92a558ddc6e741965f8f4a16cbecd362524fb01f17123e6bedfb8a53b7353
&apikey=YourApiKeyToken
Try this endpoint in your browser
πŸ”—
​
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.