Welcome to BlocksScan
  • Introduction
  • ✨GETTING STARTED
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks (WIP)
    • Logs
    • Geth/Parity Proxy (WIP)
    • Tokens
    • Gas Tracker (WIP)
    • Stats
  • ✅CONTRACT VERIFICATION
    • What's Contract Verification
    • Multichain Verification(WIP)
    • Supported Chains
    • Common Verification Errors
    • Contract Verification Plugins
  • 🔧MISC TOOLS & UTILITIES
    • Libraries (WIP)
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
    • Visit Blocksscan.io
Powered by GitBook
On this page
  • Check Contract Execution Status
  • Check Transaction Receipt Status
  1. API Endpoints

Transactions

PreviousContractsNextBlocks (WIP)

Last updated 3 months ago

Check Contract Execution Status

Returns the status code of a contract execution.

https://api.xdcscan.io/api
   ?module=transaction
   &action=getstatus
   &txhash=0x3ac8a2f2db1c13edb2a2e9040f2378f0edc74bc59495365a637fe85ddc88c5fc

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":"Transaction fail"
   }
}

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.xdcscan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash=0x8a317d8a24629994da2bf25de2896fb55aec4de837425cb5bcf6ba697e06af89
   &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":{
      "status":"1"
   }
}
🎯
🔗
📖
🔗
browser
browser