Skip to main content
This guide shows how to withdraw USDC from a HyperCore spot or perp balance to an external EVM blockchain (such as Arbitrum, Ethereum, or Base) using the HyperCore API. Withdrawals from HyperCore to EVM chains default to the Fast Transfer method, due to the fast finality of HyperEVM. The withdrawal process:
  1. Debits your HyperCore balance (spot or perp)
  2. Routes through HyperEVM where USDC is burned via CCTP
  3. CCTP attests to the burn and mints on the destination chain
  4. If automatic forwarding is enabled, the recipient receives funds directly
Withdrawals include a HyperCore fee and (if using the Forwarding Service) a CCTP forwarding fee. Ensure your withdrawal amount exceeds combined fees depending on your transfer.

Important considerations

Keep these things in mind when withdrawing USDC from HyperCore to EVM chains:
  • Data field: If the data field is empty, the CoreDepositWallet automatically sets a default hook that enables automatic message forwarding on the destination blockchain, provided that the blockchain supports CCTP forwarding. If the data field is not empty, its contents are passed to the CCTP protocol as the value of the hookData field.
  • Destination caller: The CCTP destinationCaller is always set to the zero address. Passing your own hook data means that anyone can receive the message on the destination blockchain.
  • Withdrawal fees: In addition to the maxFee charged by the HyperCore blockchain, an additional fixed forwarding fee may be charged by CCTP if automatic forwarding is enabled. The forwarding fee amount depends on the destination blockchain and can be viewed by querying the CoreDepositWallet smart contract. Initially, the fee for forwarding to Arbitrum is 0.2 USDC. If the withdrawal includes custom hook data, the forwarding fee is not set and users have to receive the message on the destination blockchain themselves.
  • Minimum withdrawal amount: If the withdrawal amount is less than the required forwarding fee, the transaction on HyperEVM reverts. Make sure the withdrawal amount is larger than the fees.

Prerequisites

Before you begin, ensure that you’ve:
  • Installed Node.js v22.6+
  • Prepared an EVM wallet with the private key available
  • Funded your HyperCore account with USDC in either spot or perp balance
  • Created a new Node project and installed dependencies:
  • Created a .env file with required environment variables:

Steps

Use the following steps to withdraw USDC from HyperCore to an EVM blockchain.

Step 1. Construct the sendToEvmWithData action

Create a sendToEvmWithData action object with the following parameters:
  • type: sendToEvmWithData
  • hyperliquidChain: Mainnet (or Testnet for testnet)
  • signatureChainId: The ID of the chain used when signing in hexadecimal format (for example, "0xa4b1" for Arbitrum).
  • token: USDC
  • amount: The amount of USDC as a string (for example, "10" for 10 USDC, "1.5" for 1.5 USDC)
  • sourceDex: "spot" to withdraw from spot balance, or "" for perp balance
  • destinationRecipient: The recipient address on the destination blockchain
  • addressEncoding: hex for EVM chains or base58 for Solana
  • destinationChainId: The CCTP destination domain ID (for example, 3 for Arbitrum, 0 for Ethereum, 6 for Base)
  • gasLimit: Gas limit for the transaction on the destination chain
  • data: CCTP hook data (use "0x" for automatic forwarding)
  • nonce: Current timestamp in milliseconds
TypeScript

Step 2. Sign the action using EIP-712

Sign the action using the EIP-712 typed data signing standard. The signature proves that you authorize this withdrawal. The signing domain should include:
  • name: "HyperliquidSignTransaction"
  • version: "1"
  • chainId: The chain ID from signatureChainId (as a number)
  • verifyingContract: "0x0000000000000000000000000000000000000000"
TypeScript

Step 3. Submit the signed action to the exchange API

Call the exchange endpoint with the action, nonce, and signature.
TypeScript

Full example code

The following is a complete example of how to withdraw USDC from HyperCore to an external EVM blockchain. By default, it withdraws 10 USDC from your perp balance to Arbitrum testnet with automatic forwarding enabled. For other destination chains, update destinationChainId (CCTP domain ID) and signatureChainId (the ID of the chain used when signing in hexadecimal format) accordingly.
TypeScript
Run the script: