Get a new unused address
Changed onRetrieves a new unused address from the specified derivation scheme. This endpoint allows you to generate new addresses for receiving funds, ensuring that you do not reuse addresses.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).
The derivation scheme (See documentation)
Query parameters
Optional. Specifies the type of address to generate:
- Deposit: Get a deposit address from the external chain (0/x).
- Change: Get a change address from the internal chain (1/x).
- Direct: Get an address from the direct chain (x).
- Custom: Use customKeyPathTemplate if configured. Default is Deposit.
Optional. The number of addresses to skip. Useful for getting multiple unused addresses. Default is 0.
Optional. If set to true, the returned address will be marked as used. Default is false.
Track the derivation scheme automatically if it is not already tracked.
Response
Successfully retrieved an unused address.
Example response
{
"trackedSource": "DERIVATIONSCHEME:tpubD6NzVbkrYhZ4WcPozSqALNCrJEt4C45sPDhEBBuok...",
"feature": "Deposit",
"derivationStrategy": "tpubD6NzVbkrYhZ4WcPozSqALNCrJEt4C45sPDhEBBuok...",
"keyPath": "0/123",
"index": 123,
"scriptPubKey": "001460c25d29559774803f262acf5ee5c922eff52ccd",
"address": "tb1qvrp96224ja6gq0ex9t84aewfythl2txdkpdmu0",
"redeem": "0014e2eb89edba1fe6c6c0863699eeb78f6ec3271b45",
"blindingKey": "9b73aab73a972485defe9d1d27217267eb17541a393e19d820549acf3fe69308"
}Changes
- info
added the new optional
queryrequest parameterautoTrack - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- info
- info
added the optional property
to the response with the status
- info