transfer endpoint and action: "WITHDRAW".
This works the same way in Earn, Credit and Tokenized Assets. For Perpetual Trading, withdraw USDC from Hyperliquid instead.
1. Exit the position
For example, take 75 USDC out of a vault in the Earn Account:
- Equity sell orders fill asynchronously. Poll the order status until it’s
filled. - IXS vault redemptions are settled by the vault operator. Poll
/v2/tokenized_assets/redemptionsuntil the request isfinalized.
2. Send tokens to the wallet
Send 100 USDC from the Earn Account back to the user’s wallet:
Either way, the owner signs the instruction to their account. The account only follows its owner’s signature, so nobody else (including Compass) can withdraw.
Good to know
- Only tokens sitting in the account can move. If the account holds less than
amount, the call returns400 Insufficient balance. Read the amount frombalancesfirst. - Pay out a loan while it’s open. Borrowed tokens land in the Credit Account. Send them to the user’s wallet with
transferandWITHDRAW; this works while the loan is open. Collateral stays in the lending protocol until you withdraw it withrepayorbundle. - Credit and Tokenized Assets always pay the owner. Only Earn takes a
recipient. - Exit and withdraw with one signature. In Earn and Credit, a
bundlecan combine the exit with aV2_TRANSFER_TO_EOAaction, so the user signs once.
Next
Gas Sponsorship
Pay gas for your users, so they never need ETH.
Embedded Fees
Earn a fee on deposits, withdrawals, loans and trades.