Transactions
Returns the status code of a contract execution.
https://api-kovan.etherscan.io/api
?module=transaction
&action=getstatus
&txhash=0x33a048df0db0fddb1ebc7d116f9d5be095148e2093f2035312b3c806d809430c
&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":"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-kovan.etherscan.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0x5838a1e7bbb21856e3390dc02f7f7b391b2f46e00f55ca8686337fd3ea7b96d4
&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 1yr ago