Skip to main content

approve_from_env

Function approve_from_env 

Source
pub async fn approve_from_env(non_interactive: bool) -> bool
Expand description

Approves the Nautilus builder fee using environment variables.

Reads private key from environment:

  • Testnet: HYPERLIQUID_TESTNET_PK
  • Mainnet: HYPERLIQUID_PK

Set HYPERLIQUID_TESTNET=true to use testnet.