Create a Wallet Rebalance Event

post/api/v2/admin/wallet/{walletId}/rebalance

Create a Wallet Rebalance Event

Path Parameters

  • walletIdstringRequired
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$
    Min length: >= 1 characters

Request Body

targetUSDBalance number required
The target balance the wallets should have in USD
maxTransferAmount number required
The max transfer amount we should do per transfer in USD

201 Response

walletRebalanceEvent object required
id string required
Min length: >= 1 characters
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
creator string required
The Trust operator user ID that initiated the creation
Min length: >= 1 characters
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
createDate string <date-time>required
Example: 2021-09-30T00:00:00.000Z
sourceWallet string required
The Object ID of the wallet that should be rebalanced
Min length: >= 1 characters
Example: 59cd72485007a239fb00282ed480da1f
Match pattern: ^[0-9a-f]{32}$
clonedWallets array[object] required
targetWalletBalanceUSDString string required
The maximum allowed wallet balance in USD that the source and all clone wallets should be under once the rebalacing is done
Min length: >= 1 characters
plannedTransactions array[object] required
A list of basic information about all the transactions the rebalance would create
totalFeeEstimate string
Total fees estimate for initializing all wallets + transaction fees
state string required
The state of the document
Allowed values: created pendingWalletCreation pendingWalletInitialization pendingUpdate pendingTransactionInitiation done cancelled
rebalanceErrors array[object] required
pendingApprovals array[string] required
coinSpecific object required
feeBalance string
feeAddress string

400 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

403 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id