approveAgent
Was this helpful?
action.type: approveAgent action.agentAddress: address action.approved: Boolean nonce: timestamp(ms) signature: EIP-712 object
Exchange endpoint requests require a valid cryptographic signature and nonce. The signature is generated using the EIP-712 typed data standard. Refer to the HyperLiquid Python SDK for code examples.
Status confirming agent approval/revocation.
// Request
curl https://hyperliquid.blockpi.network/v1/exchange/your-api-key -X POST -H "Content-Type: application/json" --data '{"action":{"type":"approveAgent"},"nonce":1720000000000,"signature":{}}'
// Result
{"status":"ok","response":{"type":"approveAgent","data":{}}}Was this helpful?
Was this helpful?