View Source Hyperliquid.Api.Exchange.ApproveBuilderFee (hyperliquid v0.2.2)
Approve a builder to charge fees.
See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint
Summary
Functions
Approve a builder to charge fees.
Functions
Approve a builder to charge fees.
Parameters
builder: Builder addressmax_fee_rate: Maximum fee rate in basis points (e.g., "0.001%" = "0.00001")opts: Optional parameters
Options
:private_key- Private key for signing (falls back to config):expected_address- When provided, validates the private key derives to this address
Returns
{:ok, response}- Result{:error, term()}- Error details
Examples
{:ok, result} = ApproveBuilderFee.request("0x...", "0.001")Breaking Change (v0.2.0)
private_key was previously the first positional argument. It is now
an option in the opts keyword list (:private_key).