Skip to main content
createDelegatedAndGasless() is the most operationally advanced mode.
  • the trader EOA owns USDC and positions
  • a delegate EOA signs the delegated action
  • the delegate’s Safe submits it as a sponsored user operation

When to use it

  • backend-driven products that want custody separation and gasless submission
  • high-volume builder integrations
  • systems that already operate a Safe or Pimlico flow

One-time trader setup

The trader must approve USDC and register the delegate Safe, not the delegate EOA:
You can get that Safe address from client.getSmartAccountAddress().

Submit-capable client

If you already know the Safe address for this delegate key and chain, pass safeAddress to skip the SDK’s smart-account derivation call during construction:

Build-only client

In build-only mode, get*Tx() returns a Safe-style request whose call data is already wrapped for delegated execution.

Parameters

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