> ## 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.

# setDelegate

> Register a delegate address on Ostium through the Builder SDK.

```ts theme={null}
await client.setDelegate('0xDelegateAddress');
```

Use this to register:

* a delegate EOA for delegated self mode
* a Safe address for delegated gasless mode

For self gasless mode, prefer `setupGaslessDelegation()`.

## Response schema

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