> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ostium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# setupGaslessDelegation

> Register the Safe delegate required for self gasless Ostium trading.

Use this once after creating a `createSelfAndGasless()` client.

```ts theme={null}
await client.approveUsdc('max');
await client.setupGaslessDelegation();
```

This registers the Safe returned by `getSmartAccountAddress()` as the delegate for the trader EOA.

## Response schema

```ts theme={null}
interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}
```
