LogoLogo
WebsiteLoginStatus
Terminal
Terminal
  • Overview
  • How to get started
    • Enable Terminal
    • How the Integration Works
    • Deploy Widgets on Your Site
    • Integrate with API
    • Support and FAQ
  • Use Cases
    • Payment Service Providers
      • New to Crypto Payments
      • Crypto-friendly PSP
    • Point-of-Sale for Merchants
    • Integration with inabit
    • Terminal-as-a-Service
  • TERMINAL GUIDE
    • Creating Widgets
      • Advanced Settings
    • Gas Features
      • Gas Refueling
      • Gas Sweeping
  • API REFERENCE
    • Application Setup
      • Initialize Your Docker
      • Automated Signing
    • Widget
    • Organization
      • Copy of GET Purchase Status
    • Webhooks
      • Notification Types
  • INTEGRATIONS / PLUGINS
    • WooCommerce
  • WHAT WE SUPPORT
    • Supported Blockchains
    • Supported Coins
Powered by GitBook
On this page
  • Create an inabit API Wallet
  • CreateApiWalletAddress Mutation:
  • Body (ApiWalletCreateAddressInput object)
  • Response

Was this helpful?

Export as PDF
  1. API REFERENCE

Widget

Create inabit API wallets in your organization

Create an inabit API Wallet

The CreateApiWalletAddress mutation allows API admins to create a new inabit API wallet with a designated address for a given asset & blockchain.

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!

CreateApiWalletAddress Mutation:

mutation CreateApiWalletAddress($data: ApiWalletCreateAddressInput!) {
  createApiWalletAddress(data: $data) {
    address
    walletId
  }
}

Body (ApiWalletCreateAddressInput object)

Name
Type
Description

blockchainId*

string

ID of the blockchain in inabit

financialAssetId*

string

ID of the financial asset in inabit (can be token/native)

organizationId*

string

ID of the organization in inabit

Example body:

{
  "data": {
    "blockchainId": "clefn78cl00i3lc6rih442mx9",
    "financialAssetId": "clefn78h5012plc6rxbmofnop",
    "organizationId": "clsu8bel7000dlciyfdfbmwcw"
  }
}

Response

{
	"data": {
		"createApiWalletAddress": {
			"address": "0xcc918e16bc528bf58fc250f56898c7d917d33de2",
			"walletId": "cluicfnpb000066015d3narbc"
		}
	}
}
{
  "error": "Invalid request"
}

In the mutation's response, you will receive the created api wallet ID including the associated blockchain address.

Generating a new API wallet will generate a different ID and address.

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

PreviousAutomated SigningNextOrganization

Was this helpful?