Skip to main content
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

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