build_hypercore_send_asset_to_evm_call

Documentation for eth_defi.hyperliquid.core_writer.build_hypercore_send_asset_to_evm_call function.

build_hypercore_send_asset_to_evm_call(lagoon_vault, evm_usdc_amount)

Build a single Safe transaction that bridges USDC from HyperCore spot back to HyperEVM.

Parameters
  • evm_usdc_amount (int) – Amount in raw HyperEVM USDC decimals (6 decimals).

  • lagoon_vault (LagoonVault) –

Return type

ContractFunction

Note

The bridged amount is subject to Hyperliquid Core -> HyperEVM bridge fees paid from the Safe’s spot balance. In manual mainnet verification, transaction 0x82c7ca18fed4952dfdfdffb4e7565cc768c2ab14fe7533bb42a0734cfdf36b16 returned 9 USDC to HyperEVM and consumed about 0.000783 USDC in spot bridge fees.

Warning

When bridging the entire spot balance, the caller must reduce evm_usdc_amount to leave room for the bridge fee. Use compute_spot_to_evm_withdrawal_amount() to compute the adjusted amount. Without this the withdrawal silently fails (no error, no event — USDC stays in spot).