Skip to main content
All client modes support testnet: true. When enabled, the SDK switches to Arbitrum Sepolia defaults for:
  • contracts
  • subgraph endpoint
  • builder API endpoint
  • default Pimlico sponsor URL

Example

const client = await OstiumClient.createDelegatedAndGasless({
  delegatePrivateKey: process.env.DELEGATE_PRIVATE_KEY as `0x${string}`,
  traderAddress: '0xTraderAddress',
  testnet: true,
});

Notes

  • if you omit pimlicoUrl in gasless modes, the SDK uses the default Sepolia sponsor URL when testnet: true
  • you can still override rpcUrl, subgraphUrl, builderApiUrl, or pimlicoUrl manually
  • make sure the trader account, approvals, and delegation setup all happen on the same network
See Client Configuration for the full list of parameters every mode accepts.