Create rebalance
Create an internal rebalance between managed accounts.
Validation rules:
from_network/to_networkare required for wallet accounts and disallowed for ledger accounts.- When
from_currency/to_currencyandfrom_network/to_networkare the same, bothfrom_amountandto_amountmay be provided. When they differ, only one amount is allowed.
Create rebalance › Request Body
from_account_idSource account ID.
from_currencySource currency code.
to_account_idDestination account ID.
to_currencyDestination currency code.
organization_reference_idOptional reference ID for the rebalance.
from_amountAmount to send from the source account.
from_networkNetwork for the source account.
to_amountAmount to receive at the destination account.
to_networkNetwork for the destination account.
Create rebalance › Responses
Rebalance created successfully
Submit signed on-chain rebalance step
Submit a signed on-chain transaction for a wallet-to-wallet rebalance step prepared by the Turnkey provider. The backend validates the signed transaction against the step's destination + amount, then broadcasts it on-chain.
Only steps where provider_key is turnkey and status is created or signature_requested (with an unsigned transaction already prepared) can be signed.
path Parameters
idRebalance ID
stepIdRebalance step ID
Submit signed on-chain rebalance step › Request Body
signatureThe signed transaction or message.
Submit signed on-chain rebalance step › Responses
Signed transaction accepted and submitted on-chain
Create withdrawal
Create a withdrawal payment.
Create withdrawal › Request Body
from_currencySource currency code.
to_currencyDestination currency code.
from_amountAmount to send.
from_account_idSource account ID.
to_account_idDestination account ID.
from_networkNetwork for the withdrawal.
to_networkNetwork for the destination.
Create withdrawal › Responses
Withdrawal created successfully