- USDC Arrival Detection - Monitor for bridged USDC on HyperEVM
- Deposit Execution - Execute deposits to Hyperliquid L1
- L1 Confirmation Monitoring - Confirm deposits on Hyperliquid L1
USDC Arrival Detection
Monitor for USDC arrival on HyperEVM after a bridge transaction.Exports
detectUsdcArrival(walletAddress, options?)
Poll for USDC balance increase on HyperEVM.
DetectionOptions:
Returns:
UsdcArrivalResult
Throws:
UsdcArrivalTimeoutError if timeout is reached.
Example:
snapshotUsdcBalance(walletAddress)
Take a balance snapshot before bridging.detectUsdcArrivalFromSnapshot(walletAddress, previousBalance, options?)
Detect arrival from a known balance snapshot.checkUsdcBalance(walletAddress)
One-time check of USDC balance on HyperEVM.Deposit Execution
Execute deposits from HyperEVM to Hyperliquid L1.Exports
executeDeposit(signer, options)
Execute a deposit to Hyperliquid L1 trading account.
Returns:
DepositResult
Throws:
MinimumDepositErrorif amount < 5 USDCInsufficientBalanceErrorif USDC balance insufficientInsufficientGasErrorif HYPE balance insufficientDepositTransactionErrorif transaction failsUserRejectedErrorif user rejects
executeDepositFor(signer, recipientAddress, options)
Deposit on behalf of another address.validateDepositRequirements(walletAddress, amount)
Pre-flight validation before deposit.DepositValidation
Example:
approveUsdcForDeposit(signer, amount, onSubmitted?)
Execute USDC approval for CoreDepositWallet.checkDepositAllowance(walletAddress)
Check current USDC allowance for CoreDepositWallet.L1 Confirmation Monitoring
Monitor deposit confirmation on Hyperliquid L1.Exports
monitorL1Confirmation(walletAddress, expectedAmount, hyperEvmTxHash, options?)
Monitor L1 with cancellation support.
Returns: Object with:
result: Promise that resolves toL1ConfirmationResultcontroller:L1MonitorControllerfor managing monitoring
waitForL1Confirmation(walletAddress, expectedAmount, hyperEvmTxHash, options?)
Simple L1 confirmation (without controller).getHyperliquidBalance(walletAddress)
Get Hyperliquid L1 trading account balance.InvalidL1AddressErrorif address is invalidNetworkErrorif API fails
getL1TradingBalance(walletAddress)
Get formatted L1 trading balance.checkHyperliquidAccountExists(walletAddress)
Check if account has any trading history.createBridgeCompleteSummary(params)
Create a complete summary of the bridge-to-trading flow.BridgeCompleteSummary
