Skip to main content
HyperliquidPolymarket
Approves or revokes an API wallet. The request calls this wallet an agent.

Endpoint

Request Body

action

signature

Signing and Revocation

Use the NotionalSignTransaction domain, version 1, with the numeric signatureChainId and the zero address as verifyingContract. The primary type is NotionalTransaction:ApproveAgent. Use getNotionalDomain, AGENT_APPROVAL_TYPES, and buildAgentApprovalMessage from @notional/common to construct the typed data. The signed message contains notionalChain: string, agentAddress: address, agentName: string, and nonce: uint64. The HTTP action calls the network field hyperliquidChain; the signed message calls it notionalChain. Use the matching Mainnet or Testnet value. Sign with the account owner’s wallet and submit the signature as { r, s, v }. To revoke, set agentAddress to the zero address and use the existing wallet’s agentName. Use an empty name for the unnamed wallet. An existing address cannot be renamed in place; revoke it first, then approve it under the new name.

Response