LogoLogo
WebsiteLoginStatus
API Reference
API Reference
  • Introduction
  • Introduction to GraphQL
    • What is GraphQL?
      • GraphQL Schema
      • Example Using GraphQL
    • Authentication
    • Queries
      • Example Query
    • Mutations
      • Example Mutation
    • Variables
    • Fields
  • Develop With inabit API
    • Getting Started
      • Authentication
      • inabit Postman Collection
    • Organizations
      • Organization Info
      • Organization ID
      • Organization Users
      • Organization Contacts
      • Organization Transactions
    • Wallets
      • Wallets Info
      • Create inabit Wallet
      • Edit Wallet Name
      • Generate Deposit Address
      • Fetch Deposit Address
      • Save Address to Whitelist
      • Archive / Unarchive Wallet
      • Disconnect Exchange Wallet
    • Contacts
      • Contact Info
      • Create New Contact
      • Update Contact
    • Transactions
      • Transaction Info
      • Create Transfer Request
      • Create Off Ramp Request
      • Create On Ramp Request
      • Create Exchange Swap
      • Create inabit Wallet Swap
      • Edit Transaction Note
    • Utilities
      • Fetch Financial Asset
      • Fetch Blockchains
  • Remote Approver App
    • Setup and Configuration
    • API Wallets Generation
    • Automate Signing Transactions
    • Webhooks
      • Notification Types
  • WHAT WE SUPPORT
    • Assets & Tokens
    • Blockchains
    • Exchanges
      • Binance
      • Kucoin
      • Kraken
  • Changelog
Powered by GitBook
On this page
  • Adding a New Coin to a Wallet
  • Headers
  • Body (WalletDepositAddressWhereInput object)
  • Response
  • Try it out!

Was this helpful?

Export as PDF
  1. Develop With inabit API
  2. Wallets

Generate Deposit Address

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

PreviousEdit Wallet NameNextFetch Deposit Address

Was this helpful?

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 )

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

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (WalletDepositAddressWhereInput object)

Name
Type
Description

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:

Name
Type
Description

address

String

API Wallet Address

{
  "data": {
    "addCoinAddress": {
      "address": "0xca832a87caf09dcecdbe4d3bda46d67da53b69f5",
    }
  }
}
{
  "error": "Invalid request"
}

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!

Authentication
Apollo Studio