Get account assets
Retrieves a list of all asset events associated with an account or a contract identifier.
GET
Parameters
Path Parameters
principal
REQUIRED
string
Query Parameters
limit
integer Results per page
offset
integer Result offset
unanchored
boolean Include data from unanchored (i.e. unconfirmed) microblocks
until_block
string Block hash or block height. Return data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
Status code | Description |
---|---|
200 | Default Response |
4XX | Default Response |
cURL
curl -L \"https://api.hiro.so/extended/v1/address/{principal}/assets?limit={limit}&offset={offset}&unanchored=true&until_block={until_block}" \-H 'Accept: application/json'
Response
{"limit": 20,"offset": 0,"total": 1,"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"}}}]}