Skip to main content

eth_getTransactionLogs

Retrieves logs generated by a given transaction.

Parameters

  • transactionHash: [Required] string - The hash of the transaction from which logs should be retrieved.

Returns

  • result: array - An array of log objects associated with the transaction.

Example

Replace https://dataseed-testnet.helioschain.network with your node RPC URL.

Request curl

curl https://dataseed-testnet.helioschain.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getTransactionLogs", "params": ["0xbe1c7aed91b45511341a27aaedf63afd370afb9e2c01c593fb02804d0325debf"], "id": 1}'

JSON Response

{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x80b5a32E4F032B2a058b4F29EC95EEfEEB87aDcd",
"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x1ef6",
"transactionHash": "0xbe1c7aed91b45511341a27aaedf63afd370afb9e2c01c593fb02804d0325debf",
"transactionIndex": "0x0",
"blockHash": "0xfd3c1bc0319e6b006b43b0cc356ab9b366150b3d4a664bd1fba73ba45ad3b732",
"logIndex": "0x0",
"removed": false
}
]
}