Logo
Covalent API Documentation

getLogs

GET https://api.covalenthq.com/v1/:chainName/events/?starting-block=&ending-block=&address=&topics=&block-hash=&skip-decode=

Returns: GetLogsResponse

{
  "updated_at" : "{{DATETIME}}",
  "chain_id" : "{{INTEGER}}",
  "chain_name" : "{{STRING}}",
  "items" : [ {
    "block_signed_at" : "{{DATETIME}}",
    "block_height" : "{{INTEGER}}",
    "block_hash" : "{{STRING}}",
    "tx_offset" : "{{INTEGER}}",
    "log_offset" : "{{INTEGER}}",
    "tx_hash" : "{{STRING}}",
    "raw_log_topics" : [ "{{STRING}}" ],
    "sender_contract_decimals" : "{{INTEGER}}",
    "sender_name" : "{{STRING}}",
    "sender_contract_ticker_symbol" : "{{STRING}}",
    "sender_address" : "{{STRING}}",
    "sender_address_label" : "{{STRING}}",
    "sender_logo_url" : "{{STRING}}",
    "raw_log_data" : "{{STRING}}",
    "decoded" : {
      "name" : "{{STRING}}",
      "signature" : "{{STRING}}",
      "params" : [ {
        "name" : "{{STRING}}",
        "type" : "{{STRING}}",
        "indexed" : "{{BOOLEAN}}",
        "decoded" : "{{BOOLEAN}}",
        "value" : "{{STRING}}"
      } ]
    }
  } ]
}

 

Body PARAM

Key Datatype Required Description 
starting-block
null
ending-block
null
address
null
topics
null
block-hash
null
skip-decode
null



HEADERS

Key Data
Curl
curl -X GET 'https://api.covalenthq.com/v1/:chainName/events/?starting-block=&ending-block=&address=&topics=&block-hash=&skip-decode=?starting-block=&ending-block=&address=&topics=&block-hash=&skip-decode=' -H 'Content-Type: application/json'

ENDPOINTS