encode_send_asset_to_evm

Documentation for eth_defi.hyperliquid.core_writer.encode_send_asset_to_evm function.

encode_send_asset_to_evm(token_id, evm_amount_raw, sub_account='0x0000000000000000000000000000000000000000')

Encode a linked-token transfer from HyperCore spot back to HyperEVM.

Parameters
Return type

bytes

Note

Hyperliquid charges the Core -> HyperEVM bridge fee on spot before settlement. In manual mainnet verification, a 9 USDC withdrawal in 0x82c7ca18fed4952dfdfdffb4e7565cc768c2ab14fe7533bb42a0734cfdf36b16 consumed about 0.000783 USDC in bridge fees on spot.