factor_hl_transfer_from_builder_dex
Sweeps USDC from an HIP-3 builder-dex ledger back to a vault's main Hyperliquid perp ledger on HyperEVM, returning the executeByManager envelope needed to complete the transfer.
Instructions
Sweep USDC from an HIP-3 builder-dex ledger (e.g. xyz) back to the vault's main HL perp ledger. Inverse of factor_hl_transfer_to_builder_dex. HyperEVM (chain 999) only. Returns an on-chain executeByManager envelope (CoreWriter action 13).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vault": "<vault>",
"dex": "<dex>",
"usdcAmount": "<usdcAmount>"
},
"name": "factor_hl_transfer_from_builder_dex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | Yes | Source builder dex. Currently only "xyz" is supported. | |
| vault | Yes | Vault contract address (HyperEVM). | |
| password | No | Wallet password if encrypted. | |
| usdcAmount | Yes | USDC amount to transfer back in float dollars (e.g. "1.50" or 1.5). |