The SDK enters delegate mode automatically when
AVANTIS_PRIVATE_KEY’s address differs from AVANTIS_TRADER_ADDRESS.
Easiest path: the API Key Generator
Generate an API key on the Avantis API Key Generator; one wallet signature registers it. Then set the two env vars and trade. See Quickstart.DIY registration
Register any key programmatically. The trader key signs oneDelegateReq intent (used transiently, never stored); submission is gasless:
rpc_url when you run
the SDK with your wallet key as the signer; see
Execution modes.
Check and verify
verify_delegation() at startup for a fail-fast bot: it is a no-op when the signer is the trader itself.