Fetch Deposit Address
Fetching an existing coin/asset blockchain address within a wallet
Fetching an existing coin/asset blockchain address within a wallet
The GetOrCreateDepositAddress
query allows API users to fetch an existing blockchain address for an asset & blockchain in their wallet. If there isn't one, the query will return an error and you will need to use Generate Deposit Address query beforehand to add a coin first.
Do note that currently, this query is called
GetOrCreateDepositAddress
while in fact this query cannot create/generate a new blockchain deposit address for a wallet. This confusion will be fixed and deprecated in future versions of the API.
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Example body:
Return values:
In the query's response, you will receive the created API wallet address for the wallet, asset & blockchain IDs given in the body.
Name | Type | Description |
---|---|---|
Content-Type
application/json
Authorization
Bearer <token>
walletId*
string
ID of the wallet
financialAssetId*
string
ID of the financial asset in inabit (can be token/native)
blockchainId*
string
ID of the blockchain in inabit
address
String
API Wallet Address