encode_send_asset

Documentation for eth_defi.hyperliquid.core_writer.encode_send_asset function.

encode_send_asset(destination, sub_account, source_dex, destination_dex, token_id, amount_wei)

Encode a CoreWriter sendAsset action (action ID 13).

sendAsset is the documented CoreWriter path for linked-token transfers between HyperCore spot and HyperEVM spot. To bridge USDC from HyperCore back to HyperEVM, pass the USDC system address as destination and SPOT_DEX for both dex fields.

Parameters
Return type

bytes