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.
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!
Last updated
Was this helpful?