Links
Comment on page

Transactions

Check Contract Execution Status

Returns the status code of a contract execution.
https://api.bttcscan.com/api
?module=transaction
&action=getstatus
&txhash=0x903ebde6583ac3a7429ecba8780eacf193aa127dc473f3d187e23abb9356095a
&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":"execution 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.
https://api.bttcscan.com/api
?module=transaction
&action=gettxreceiptstatus
&txhash=0x338e400ed3a3a4c5024b3c2caed22632d0a986c59bc80aa652de35679a9001de
&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.