Quick Start
Key differences
Follow the “Auto routing” guides when going from any EVM to HyperCore. The main differences when integrating HyperCore compared to standard EVM chains: Transaction Flow from HyperCore to EVM- User sends funds to a Deposit contract with the quote ID
- Socket indexes the transaction and delivers the funds on the destination chain
- Both
userAddressandreceiverAddressrequired for quotes - The only assets supported from/to HyperCore are USDC (Spot) and USDC (Perps)
- There is no Fee collection currently from HyperCore to EVM
- Quote responses already account for HyperCore’s 1 USDC activation fee for new account activations and withdrawals
- Only USDC (Perps) is supported when bridging out of Hypercore
inputAmount format for HyperCore
The inputAmount parameter must be provided as an integer string in 6-decimal base units (micro-units):
Conversion formula:
inputAmount = humanAmount × 10^6 (rounded to integer)
Integration Steps
HyperCore to EVM
- Select Chains: Choose source and destination chains.
- Fetch Routes: Retrieve the deposit route using the
/quoteendpoint. The response containsdepositRoute.signTypedDataanddepositRoute.quoteId. - Sign and Submit: Sign the
signTypedDatawithprimaryType: "HyperCoreTransaction:SendAsset", then submit the signed data to HyperLiquid’s API endpoint (https://api.hyperliquid.xyz/exchange). - Track Transaction Status: Poll the
/statusendpoint using thequoteIduntil the bridging process is complete.
For HyperCore quotes, ensure both
userAddress and receiverAddress are defined.HyperCore to EVM is under depositRoute (not autoRoute).Examples
Queries
Quote from Optimism USDC to HyperCore USDC (Spot)
Quote from Optimism USDC to HyperCore USDC (Spot)
Quote from HyperCore USDC (Perps) to Optimism USDC
Quote from HyperCore USDC (Perps) to Optimism USDC
Scripts
Quote and swap from Optimism USDC to HyperCore USDC (Spot)
Quote and swap from Optimism USDC to HyperCore USDC (Spot)
Quote and swap from HyperCore USDC (Perps) to Optimism USDC
Quote and swap from HyperCore USDC (Perps) to Optimism USDC