For the complete documentation index, see llms.txt. This page is also available as Markdown.

Prepare a builder-fee approval

Prepare a builder-fee approval

post

Build the one-time approval that lets orders be routed with Nansen's builder code.

Hyperliquid refuses an order carrying a builder code until the wallet has approved a maximum fee rate at least as high as the fee on that order, so this approval is a prerequisite for /api/v1/perp/order and /api/v1/perp/close. It is needed once per wallet — check /api/v1/perp/builder-fee instead of prompting for it every session.

Same prepare → sign → execute flow as the trading endpoints: sign the returned eip712 payload and submit it to /api/v1/perp/execute. Sign it with the wallet's own key — an approval signed by an API (agent) wallet is not accepted. The approval covers exactly the fee rate applied to orders, which /api/v1/perp/builder-fee reports.

Authorizations
apikeystringRequired

API key for authentication

Body

Wallet to prepare a one-time builder-fee approval for.

wallet_addressstringRequired

Wallet that will sign the approval. It must be signed by the wallet's own key — an approval signed by an API (agent) wallet is not accepted.

Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
Responses
200

Successful Response

application/json
post/api/v1/perp/approve-builder-fee

Last updated

Was this helpful?