Skip to main content

Get Event Logs by Address and/or Topic(s)

GET 

/?module=logs&action=getLogs

Get Event Logs by Address and/or Topic(s)

Request

Details

Query Parameters

    module stringrequired

    Possible values: [logs]

    action stringrequired

    Possible values: [getLogs]

    fromBlock integerrequired
    toBlock integerrequired
    address stringrequired
    topic0 stringrequired
    topic1 string
    topic2 string
    topic3 string
    topic0_1_opr string

    Possible values: [and, or]

    topic0_2_opr string

    Possible values: [and, or]

    topic0_3_opr string

    Possible values: [and, or]

    topic1_2_opr string

    Possible values: [and, or]

    topic1_3_opr string

    Possible values: [and, or]

    topic2_3_opr string

    Possible values: [and, or]

    apiKey stringrequired
    Example: pk_1234567890

Responses

OK

Details

Schema

    message string
    Details

    result

    object[]

  • Array [

  • address string
    blockNumber string
    data string
    gasPrice string
    gasUsed string
    logIndex string
    timeStamp string
    topics string[]
    transactionHash string
    transactionIndex string
  • ]

  • status string
Loading...

Was this page helpful?