Etherscan
Sepolia Etherscan
Search…
⌃K
Links

Transactions

Check Contract Execution Status

Returns the status code of a contract execution.
https://api-sepolia.etherscan.io/api
?module=transaction
&action=getstatus
&txhash=0x5d329954fae7d19b2fb9abf0e6862735243b1079c58e0ea307d7e933657ac083
&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":"0",
"errDescription":""
}
}
​
📖
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-sepolia.etherscan.io/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0x13d297c02c1dd4ada29fa88e5d3dfa040c2f1d0d45802fb6b02ed95debdf2290
&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":"1"
}
}
​
📖
Tip: The status field returns 0 for failed transactions and 1 for successful transactions.