Skip to main content
createSelfAndSelf() is the simplest mode.
  • the trader EOA owns USDC and positions
  • the same trader EOA signs transactions
  • transactions are submitted directly on Arbitrum and the trader pays gas

When to use it

  • bots and scripts
  • server-side systems trading a house account
  • wallet-driven apps where the user is comfortable paying gas
  • client-side apps that only need unsigned EOA transaction payloads

Submit-capable client

Build-only client

In build-only mode, get*Tx() returns an EOA request with from, to, data, and value so your app can pass it to a wallet for signing.

Parameters

Plus the shared options (testnet, slippageBps, builder, subgraphUrl, builderApiUrl, alchemyApiKey). See Client Configuration.