Get contract events
Retrieves a list of events that have been triggered by a given smart contract.
GET
Parameters
Path Parameters
contract_id
REQUIRED
string Contract identifier formatted as `<contract_address>.<contract_name>`
Query Parameters
limit
integer max number of events to fetch
offset
integer Result offset
Status code | Description |
---|---|
200 | List of events |
4XX | Default Response |
cURL
curl -L \"https://api.hiro.so/extended/v1/contract/{contract_id}/events?limit={limit}&offset={offset}" \-H 'Accept: application/json'
Response
{"limit": 20,"offset": 0,"results": [{"event_index": 0,"event_type": "smart_contract_log","tx_id": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","contract_log": {"contract_id": "SP000000000000000000002Q6VF78.pox-3","topic": "print","value": {"hex": "0x1234","repr": "value representation"}}}]}