usdClassTransfer to move USDC between your own Hyperliquid spot wallet and perp wallet. Use spotSend to send a spot asset to another address without touching the EVM bridge. Use withdraw3 to initiate a withdrawal that goes through the bridge contract.
All three are POST actions to https://api.hyperliquid.xyz/exchange with Content-Type: application/json. Each request requires an action object, an outer nonce, and a signature.
Quick comparison
| Action | Purpose | EVM bridge | Documented fee |
|---|---|---|---|
usdClassTransfer | Move USDC between the user's spot wallet and perp wallet | Docs describe an internal spot/perp transfer; no bridge step is described | Not stated in the docs |
spotSend | Send a spot asset to another address | Explicitly does not touch the EVM bridge | Not stated in the docs |
withdraw3 | Initiate a withdrawal to a destination address | L1 validators sign and send the withdrawal request to the bridge contract | $1 at the time of writing |
Which action touches the EVM bridge?
spotSend: The docs state that this transfer does not touch the EVM bridge.withdraw3: After the request, L1 validators sign and send the withdrawal request to the bridge contract. The docs say withdrawals take approximately 5 minutes to finalize.usdClassTransfer: The docs describe it as transferring USDC from the user's spot wallet to the perp wallet, or vice versa. They do not describe a bridge step.
Required fields
usdClassTransfer
Use this action to transfer USDC between spot and perp.
Action fields:
type:"usdClassTransfer"hyperliquidChain:"Mainnet"or"Testnet"signatureChainId: chain ID used when signing, in hexadecimal formatamount: USDC amount as a string, for example"1"toPerp:truefor spot to perp,falsefor perp to spotnonce: current timestamp in milliseconds; must match the outer requestnonce
spotSend
Use this action to send a spot asset to another address.
Action fields:
type:"spotSend"hyperliquidChain:"Mainnet"or"Testnet"signatureChainId: chain ID used when signing, in hexadecimal formatdestination: 42-character hexadecimal addresstoken:tokenName:tokenId, for example"PURR:0xc1fb593aeffbeb02f85e0308e9956a90"amount: token amount as a string, for example"0.01"time: current timestamp in milliseconds; should match the outer requestnonce
withdraw3
Use this action to initiate a withdrawal.
Action fields:
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Create a Hyperliquid account (referral; 4% fee discount on first $25M volume; Vaults/sub-accounts excluded) โtype:"withdraw3"hyperliquidChain:"Mainnet"or"Testnet"signatureChainId: chain ID used when signing, in hexadecimal formatamount: USD amount as a string, for example"1"time: current timestamp in milliseconds; should match the outer requestnoncedestination: 42-character hexadecimal address
nonce must match the action's time.
Choosing the right action
- Move USDC from spot to perp: use
usdClassTransferwithtoPerp: true. - Move USDC from perp to spot: use
usdClassTransferwithtoPerp: false. - Send a spot token to another address: use
spotSend. - Withdraw USDC out of Hyperliquid to an external destination: use
withdraw3.
Example action fields
The examples below show the action object only. The outer request still requires nonce and signature. Timestamps are illustrative.
{
"type": "usdClassTransfer",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"amount": "100",
"toPerp": true,
"nonce": 1716531066415
}
{
"type": "spotSend",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"destination": "0x0000000000000000000000000000000000000000",
"token": "PURR:0xc1fb593aeffbeb02f85e0308e9956a90",
"amount": "0.1",
"time": 1716531066415
}
{
"type": "withdraw3",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"amount": "1",
"time": 1716531066415,
"destination": "0x0000000000000000000000000000000000000000"
}
Source
Hyperliquid Exchange endpoint docsHyperliquid account
This article includes a referral link. If you sign up, I may earn a commission. The referee gets a 4% fee discount on the first $25M of volume; Vaults and sub-accounts are excluded.
Create a Hyperliquid accountContinue with Hyperliquid
Browse the Hyperliquid guide hub for the complete user journey.