Skip to main content

Get logs by contract address

GET 

/:network/chain/logs/contract/:contract_address

Get logs by contract address

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

    contract_address stringrequired

    Contract address to filter logs

Query Parameters

    start_block number

    The starting block number.

    end_block number

    The ending block number. Must be greater than startBlock and not more than 2000 blocks further.

    block_hash string

    The block hash to filter logs.

    topics string[]

    The topics array to filter logs.

Responses

The logs for the specified contract.

Schema

  • Array [

  • network_name stringrequired

    Blockchain network name For the requested query

    chain_id numberrequired

    The chain ID of the network.

    count numberrequired

    The total number of logs returned.

    logs

    object[]

    required

    The logs returned by the query.

  • Array [

  • address stringrequired

    The address of the contract that emitted the event.

    topics string[]required

    The topics of the log entry, typically an event signature and indexed parameters.

    data stringrequired

    The data of the log entry, typically non-indexed event parameters.

    block_height numberrequired

    The block number where this log was included.

    block_hash stringrequired

    The block hash where this log was included.

    log_index numberrequired

    The index position of this log in the block.

    transaction_hash stringrequired

    The transaction hash of the transaction that emitted the event.

    transaction_index numberrequired

    The index position of the event log within the transaction.

    removed booleanrequired

    Whether the event was removed due to a chain reorganization.

  • ]

  • ]

Loading...