SnowScan
HomeTwitterKnowledge BaseAPI PRO
Fuji SnowScan
Fuji SnowScan
  • Fuji Testnet
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth Proxy
    • Tokens
    • Stats
  • Visit Fuji SnowScan
Powered by GitBook
On this page
  • Check Contract Execution Status
  • Check Transaction Receipt Status
  1. API Endpoints

Transactions

PreviousContractsNextBlocks

Last updated 1 year ago

Check Contract Execution Status

Returns the status code of a contract execution.

https://api-testnet.snowscan.xyz/api
   ?module=transaction
   &action=getstatus
   &txhash=0xff124ab90224b4c86ea8d6c6e6dfba9c56ac3124cd17f3be5f1cd9d423d51882
   &apikey=YourApiKeyToken

Try this endpoint in your

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":"out of gas"
   }
}

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 transactions.

https://api-testnet.snowscan.xyz/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x091a9893ef04fbac8cda4ca4b17f653a8599fedab6da48036ba9fb01db1b237d
   &apikey=YourApiKeyToken

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"
   }
}

Try this endpoint in your

Tip: The status field returns 0 for failed transactions and 1 for successful transactions.

🎯
📖
🔗
📖
📝
browser
Byzantium Fork
🔗
browser