Get transaction events

Retrieves events for a specific transaction.

GET

/extended/v1/tx/events

Retrieves the list of events filtered by principal (STX address or smart contract ID), transaction ID or event types. The list of event types is ('smart_contract_log', 'stx_lock', 'stx_asset', 'fungible_token_asset', 'non_fungible_token_asset').

Query parameters

tx_idstring

Hash of transaction

addressstring

Stacks address or a smart contract identifier

Example: "ST1HB64MAJ1MBV4CQ80GF01DZS4T1DSMX20ADCRA4"

limitinteger

Number of items to return

Example: 100

offsetinteger

Number of items to skip

Example: 42000

typearray of string

Filter the events by event type

Example: "stx_lock"
Status codeDescription
200Success
curl
curl -X GET "https://api.mainnet.hiro.so/extended/v1/tx/events"

GET event for the given transaction

Example response
{
  "limit": 0,
  "offset": 0,
  "results": [
    {
      "event_index": 0,
      "event_type": "smart_contract_log",
      "tx_id": "string",
      "contract_log": {
        "contract_id": "string",
        "topic": "string",
        "value": {
          "hex": "string",
          "repr": "string"
        }
      }
    }
  ]
}