Etherscan
Ropsten Etherscan
Search…
⌃K
Links

Transactions

Check Contract Execution Status

Returns the status code of a contract execution.
https://api-ropsten.etherscan.io/api
?module=transaction
&action=getstatus
&txhash=0xb2356f16434729b34c38e064b889c558fc4d337e47d4fd2a667f0f8b7c32e4e6
&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-ropsten.etherscan.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0xd1bb32274f861c4754afee1d5a4cc863eaf37c78fb319f6215a10ad630a5a946
&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.