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 Batch Sweeping
      • Create Off Ramp Request
      • Create On Ramp Request
      • Create inabit Wallet Swap
      • Create Exchange 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
  • Create a Batch Transfer
  • Headers
  • Body (SweepTransactionInput) object
  • Response
  • Try it out!

Was this helpful?

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

Create Batch Sweeping

Create a batch transfer request from multiple wallets to sweep funds

Create a Batch Transfer

Initiate a mutation to create an assets batch transfer request to sweep asset funds from multiple source wallets to a destination wallet address within your inabit organization.

d

mutation SweepWallets($data: SweepTransactionInput!) {
  sweepWallets(data: $data) {
    transactionId
  }
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (SweepTransactionInput) object

Name
Type
Description

id* (destinationWallet)

String

Wallet ID

id* (blockchain)

String

Blockchain ID

id* (financialAsset)

String

Asset ID

id* (Organization)

String

Organization ID

id* (sourceWalletIds)

String

Source Wallet IDs

Example body:

{
    "data": {
      "destinationWalletId": "master-wallet",
      "blockchain": {
        "id": "clefn78h5012plc6rxbmofnop"
      },
      "financialAsset": {
        "id": "cmaa9a52t24s28n018pz2zle4"
      },
      "organization": {
        "id": "org-98765"
      },
      "sourceWalletIDs": ["wallet-001", "wallet-002"]
    }
  }
}

Response

Return values:

Name
Type
Description

transactionId

String

Batch Transfer ID

{
  "data": {
    "sweepWallets": {
      "transactionId": "tx-46a89bcf-33d3-4a88-90de-59c5f201b9ab"
    }
  }
}
{
}

Try it out!

PreviousCreate Transfer RequestNextCreate Off Ramp Request

Last updated 4 days ago

Was this helpful?

Apollo Studio