factor_hl_add_api_wallet
Registers a HyperLiquid API wallet (agent EOA) for a vault on HyperEVM, enabling the agent to sign off-chain EIP-712 actions on the vault's behalf.
Instructions
Register a HyperLiquid API wallet (agent EOA) for a vault via CoreWriter action 9. The agent is authorized to sign off-chain EIP-712 actions (setLeverage, addIsolatedMargin, etc.) on behalf of the vault. HyperEVM (chain 999) only.
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>",
"agentEoa": "<agentEoa>",
"slotName": "<slotName>"
},
"name": "factor_hl_add_api_wallet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault contract address. | |
| agentEoa | Yes | EOA address that will be authorized as the HL API wallet. | |
| password | No | Wallet password if encrypted. | |
| slotName | Yes | Named slot for this agent. Use "default" for the unnamed HL slot (empty name on-chain). |