Endpoint
Request Body
| Parameter | Type | Description |
|---|---|---|
action* | object | See below |
action.type* | string | Must be "approveAgent" |
action.hyperliquidChain* | string | "Mainnet" or "Testnet" |
action.signatureChainId* | string | EIP-712 chain ID in hex, for example "0xa4b1" |
action.agentAddress* | string | Agent wallet address, or the zero address to revoke |
action.agentName | string | Optional label, max 50 chars |
action.nonce* | number | Must match outer nonce |
nonce* | number | Replay-protection nonce |
signature* | object | EIP-712 signature |
signature.r* | string | 32-byte hex string |
signature.s* | string | 32-byte hex string |
signature.v* | number | Recovery id |
Response
Example Request
Notes
- Use
0x0000000000000000000000000000000000000000to revoke an existing agent by name. - Renaming an existing approved agent is not supported in-place. Revoke it first, then approve again with the new name. -action.noncemust equal the outernonce.
