Generate Deposit Address

Adding a new coin/asset to a wallet (Generates a new wallet blockchain deposit address)

Adding a New Coin to a Wallet

The AddCoinAddress query allows API users to add a new coin into their API wallet/s. This action will generate a new blockchain address in the wallet.

Remember to authenticate to call our GraphQL API using an access token (bearer) with your API Admin credentials. (If you're not sure how, refer to Authentication)

Don't have an API Admin user yet? contact us at support@inabit.com to create one!

query AddCoinAddress($where: WalletDepositAddressWhereInput!) {
  addCoinAddress(where: $where) {
    address
  }
}

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body (WalletDepositAddressWhereInput object)

NameTypeDescription

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

Example body:

{
  "where": {
    "walletId": "clvm13aa70003phy2n5j7ece9",
    "assetId": "clefn78h5012plc6rxbmofnop",
    "blockchainId": "clefn78cl00i3lc6rih442mx9"
  }
}

Response

Return values:

NameTypeDescription

address

String

API Wallet Address

{
  "data": {
    "addCoinAddress": {
      "address": "0xca832a87caf09dcecdbe4d3bda46d67da53b69f5",
    }
  }
}

In the query's response, you will receive the created API wallet address for the asset & blockchain given in the body.

Reminder - You can't add multiple blockchains under the same API wallet. One inabit API wallet = one address

Try it out!

Last updated