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:client.getSmartAccountAddress().
Submit-capable client
safeAddress to skip the SDK’s smart-account derivation call during construction:
Build-only client
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.