Search Logs

Between two blocks, it return the smart contract log events. The command requires -logevents to be enabled on wallet startup.

searchlogs 290 390

[
{
"blockHash": "d31f19108c119f3701604b71fc6f5c68805de880f3586b9d6f5b137d70e76ca7",
"blockNumber": 290,
"transactionHash": "5db0f68ef0e9bb140c99b5e9a00186f36eb4957c6b03557b514f03b3213463c1",
"transactionIndex": 2,
"from": "18567a1e142dccc6c5697064f7626f6a09a7c069",
"to": "2e1b8374adf09f1ab607528c07539b5dd9a76f35",
"cumulativeGasUsed": 37968,
"gasUsed": 37968,
"contractAddress": "2e3374adf09f11b8528c07539b5dd9a76fab6075",
"excepted": "None",
"log": [
{
"address": "2ed9a76f3374adf09f1ab1b8528c07539b5d6075",
"topics": [ "ddf252c89b69c2b068fc378daa952ba7f163c42ad1bea11628f55a4df523b3ef", "000000000000000000000000c569701854f76267a1e142dccc666f6a09a7c069", "000000000000000000000000ea057729f1057e4a5f9ac130defb33728fcdb9cb" ],
"data": "0000000000000000000000000000000000000000000314535eb92228006d9800"
}
]
},
{
"blockHash": "b35295f75e57b100c9c079ea9dd0c4797c8f090a8d4bc7d6fc936208616d82aa",
"blockNumber": 296,
"transactionHash": "de6e0bf79c04a4e010c2386ba05f8c83bea025451492bd0140b3cf1b339adf9b",
"transactionIndex": 8,
"from": "f3271180258aaac50956f00a2e96af94c4610beb",
"to": "f20310445bca83ede578e17fa62310472650cf1c",
"cumulativeGasUsed": 36423,
"gasUsed": 36423,
"contractAddress": "f2445bca8c033ede578e17fa6231047265010f1c",
"excepted": "None",
"log": [
{
"address": "f203fa6231047265010445bc3ede578e17a8cf1c",
"topics": [ "ddf252a89b69c2b068fc378daa952ba7f163c4a1162d1be2c8f55a4df523b3ef", "000000000000000000000000f30a2eaf94c4610be96271180258aaac50956f0b", "000000000000000000000000e57e4a5fdefb33a057729f10728f9ac130cdb9cb" ],
"data": "000000000000000000000000000000000000000000000000000000578d09cfff"
}
]
}
]