Skip to main content
Use this once after creating a createSelfAndGasless() client.
await client.approveUsdc('max');
await client.setupGaslessDelegation();
This registers the Safe returned by getSmartAccountAddress() as the delegate for the trader EOA.

Response schema

interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}