For the complete documentation index, see llms.txt. This page is also available as Markdown.

Listing account addresses

GET /api/public/v1/accounts/:id/addresses

Returns the receiving addresses of a crypto account, newest first by default, with the network of each address in included[]. An address created moments ago can still have value null; poll until it is set. Results are paginated.

Headers

Name
Value

Content-Type

application/vnd.api+json

Authorization

Bearer <api_key>

Path Parameters

Name
Type
Description

id

string

Account ID.

URL Parameters

Name
Type
Description

network_id

string

Return only addresses on this network. Use the network ID from included[].type(network).id on this page or from relationships.networks on Reading account. An unknown ID returns an empty list.

order

string

Field to sort by. Can be created_at or updated_at. Defaults to created_at.

order_type

string

Sort direction. Can be either asc or desc. Defaults to desc.

page

number

Page for which you want to return addresses.

per_page

number

Number of addresses per page to return.

cURL

curl -G "https://api.sandbox.txn.io/api/public/v1/accounts/e289de2b-37bd-4eff-b832-f754c31a2d95/addresses" \
     -H 'Content-Type: application/vnd.api+json' \
     -H 'Authorization: Bearer <api_key>' \
     --data-urlencode 'order=created_at' \
     --data-urlencode 'order_type=desc' \
     --data-urlencode 'per_page=50'

Response

Response Body

Name
Type
Description

data[].id

string

Address ID.

data[].type

string

Entity type returned. Always addresses.

data[].attributes.label

string

Address label, as set at creation.

data[].attributes.value

string

The address string. null while the address is still being generated — see Creating account address.

data[].attributes.createdAt

string

ISO 8601 timestamp of when the address was created.

data[].relationships.account

object

Not expanded (meta.included is false). The account in the path.

data[].relationships.network

object

The network the address belongs to. data.type is network; the entity is returned in included[].

included[].type(network)

object

The network of an address (data[].relationships.network).

included[].type(network).id

string

Network ID. Use it as network_id when creating an account address.

included[].type(network).attributes.currencyCode

string

Network currency code.

included[].type(network).attributes.name

string

Human-readable network name, e.g. Tron (TRC20).

included[].type(network).attributes.code

string

Network code, e.g. ttrx:usdt. See Supported currencies.

meta.page

number

Current page number.

meta.per_page

number

Page size used for the response.

meta.total

number

Total number of addresses on the account.

Last updated