Transaction

?module=transaction

https://quaiscan.io/api?module=transaction

Get transaction info

gettxinfo

Information related to a specified transaction. Includes:

  • blockNumber

  • confirmations

  • from

  • gasLimit (in its)

  • gasPrice (in its)

  • gasUsed

  • hash

  • input

  • logs (array)

  • revert reason

  • success

  • timeStamp

  • to

  • value (in its)

Example

https://quaiscan.io/api
   ?module=transaction
   &action=gettxinfo
   &txhash={transactionHash}

Get transaction receipt status

gettxreceiptstatus

Also available through a GraphQL 'transaction' query. Status field return:

  • 0 = failed transaction

  • 1 = successful transaction

Example

https://quaiscan.io/api
   ?module=transaction
   &action=gettxreceiptstatus
   &txhash={transactionHash}

Get error status and message

getstatus

Also available through a GraphQL 'transaction' query. Includes the following:

  • errDescription: string with error message

  • isError

    • 0 = pass, no error

    • 1 = error

Example

https://instance_base_url/api
   ?module=transaction
   &action=getstatus
   &txhash={transactionHash}

\

Last updated