Skip to content

Decode event logs

POST
/v2/contract/logs/decode

Decode event logs from a transaction receipt.

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
abiId
required

The ABI ID to use for decoding

string
77a0049c-7683-45ff-956f-656f257048f7
logs
required

The event logs to decode

Array<object>
object
topics
required

The log topics

Array<string>
[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
]
data

The log data

string
0x0000000000000000000000000000000000000000000000000000000000000001

The decoded event logs

object
rawLogs
required

The original raw logs

Array<object>
object
topics
required

The log topics

Array<string>
[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
]
data

The log data

string
0x0000000000000000000000000000000000000000000000000000000000000001
decodedLogs
required

The decoded logs

object
decodedLogs
required

The decoded event data

Array<object>
object
eventSignature

The event signature

string
Transfer(address,address,uint256)
name

The event name

string
Transfer
decodedData

The decoded event data

object
{
"from": "0x123...",
"to": "0x456...",
"value": "1000000000000000000"
}
error

Error information if decoding failed

object
message
required

Error message

string
Failed to decode log
code
required

Error code

string
DECODE_ERROR

Bad Request

Unauthorized

Forbidden

Not Found

Internal Server Error