List Wallet Rebalance Events

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

List wallet rebalance events

Path Parameters

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

Query Parameters

  • limitstringDefault: 25
    Maximum number of results to return. If the result set is truncated, use the "nextBatchPrevId" value to get the next batch.
  • prevIdstring
    Return the next batch of results, based on the "nextBatchPrevId" value from the previous batch.
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$
  • statearray[string]
    Return wallet rebalance events with specific state
    Enum: created pendingWalletCreation pendingWalletInitialization pendingUpdate pendingTransactionInitiation done cancelled

200 Response

walletRebalanceEvents array[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
nextBatchPrevId string <uuid>
When a result set is truncated, this field returns the id of the last object in the previous batch. To get the next batch of results, pass this value via the "prevId" query parameter.
Example: 585951a5df8380e0e3063e9f

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

404 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