Creating account address
POST /api/public/v1/accounts/:id/addresses
Creates a receiving address on the given account for the specified network.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Path Parameters
id
string
Account ID.
Body
data
object
Request data object.
data.type
string
Resource type. Always addresses.
data.attributes
object
Address attributes.
data.attributes.network_id
string
ID of the network to generate the address on. Must belong to the account's currency. Read the account to list its available networks — see Reading account.
data.attributes.label
string
Address label. Use any value that helps you recognize the address later.
Request JSON
{
"data": {
"type": "addresses",
"attributes": {
"network_id": "string",
"label": "string"
}
}
}Response
The network_id does not match a known network.
Response Body
data.id
string
Address ID.
data.type
string
Entity type returned. Always addresses.
data.attributes.label
string
Address label, as set in the request.
data.attributes.value
string
The address string. null in this response — generated asynchronously. Retrieve it via Listing account addresses.
data.attributes.createdAt
string
ISO 8601 timestamp of when the address was created.
data.relationships.account
object
The account the address belongs to.
data.relationships.network
object
The network the address was generated on.
Last updated