Skip to main content

Transaction

Get Transaction Info

Retrieve detailed information about a specific transaction using its transaction hash.

Free [2 Credits]

Endpoint

GET

https://mainnet-oapi.kaiascan.io/api?module=transaction&action=gettxinfo&txhash={transactionHash}&apikey={YourApiKey}

Request Parameters

ParameterTypeRequiredDescription
txhashStringYesThe transaction hash to retrieve information for.

Sample Response

{
"status": "1",
"message": "OK",
"result": {
"revertReason": "",
"blockNumber": "175419193",
"confirmations": "1465511",
"from": "0x927d49784d45087b04857b7232ba42609f81cb61",
"gasLimit": "3149157",
"gasPrice": "0.0000000275",
"gasUsed": "2030693",
"hash": "0x23741940406ed5e5316cbc5a0b7e4d2d004a103b448075e7908d06acd7ed650b",
"input": "0x690e7c09000000000000000000000000000000000000000000000000000001d1a958e4d3",
"logs": [
{
"address": "0x268cc8248ffb72cd5f3e73a9a20fa2ff40efba61",
"data": "0x00000000000000000000000000000000000000000000000000000",
"topics": [
"0xef277373d709abc6be9d4926ac62b54991f4de2b6f8718079ae3d735ded22340",
"0x000000000000000000000000927d49784d45087b04857b7232ba42609f81cb61"
]
}
],
"success": true,
"timeStamp": "1737441501",
"to": "0x13ce9c99e8e2fcde1632ada7b69b2ecf5be8ed45",
"value": "0"
}
}



Get Transaction Receipt Status

Retrieve the status of a transaction receipt using its transaction hash.

Free [2 Credits]

Endpoint

GET

https://mainnet-oapi.kaiascan.io/api?module=transaction&action=gettxreceiptstatus&txhash={transactionHash}&apikey={YourApiKey}

Request Parameters

ParameterTypeRequiredDescription
txhashStringYesThe transaction hash to retrieve information for.

Sample Response

{
"status": "1",
"message": "OK",
"result": {
"status": "1"
}
}



Get error status and message

Retrieve the error status and message from the API service.

Free [2 Credits]

Endpoint

GET

https://mainnet-oapi.kaiascan.io/api?module=status&action=getstatus&apikey={YourApiKey}

Sample Response

{
"status": "1",
"message": "OK",
"result": {
"errDescription": "",
"isError": "0"
}
}