Get transaction events

Retrieves events for a specific transaction.

GET
/extended/v1/tx/events

Transaction 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 Contract identifier

Example: "ST1HB64MAJ1MBV4CQ80GF01DZS4T1DSMX20ADCRA4"

limitinteger

number of items to return

Example: 100

offsetinteger

number of items to skip

Example: 42000

typearray<string>

Filter the events on event type

Example: "stx_lock"
Status codeDescription
200Success
/extended/v1/tx/events

curl -X GET "https://api.hiro.so/extended/v1/tx/events?tx_id=string&address=ST1HB64MAJ1MBV4CQ80GF01DZS4T1DSMX20ADCRA4&limit=100&offset=42000&type=stx_lock"

GET event for the given transaction

{
  "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"
        }
      }
    }
  ]
}