Get Receiving Addresses of an Account

Get receiving addresses of an account

post

[LAM] This post endpoint is returning addresses verified by the HSM and can be trusted. For UTXO-based accounts. Returns a list of the next 3 available fresh addresses for an account. A fresh address is a newly generated address that has not received any previous transactions. It is recommended for privacy and security to use a fresh address for every transaction. On non UTXO-based accounts, this endpoint will return the single public address in use for the account.

Authorizations
Path parameters
account_idintegerRequired

The account's ID

Body
account_namestringRequired

The name of the account you want the addresses for.

Example: My-Eth
indexinteger | nullableOptional

Select the index of the address to retrieve.

Default: nullExample: 35
Responses
200
New address generated
application/json
post
POST /accounts/{account_id}/addresses HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "account_name": "My-Eth",
  "index": 35
}
{
  "addresses": [
    {
      "address": "text",
      "derivation_path": "0/18"
    }
  ]
}

Last updated