Sign and connect to Towns using a Signer and a random delegate wallet every time

Imports

import { signAndConnect } from '@towns-protocol/react-sdk'

Definition

function signAndConnect(
  signer: ethers.Signer,
  config: Omit<SyncAgentConfig, "context">,
): Promise<SyncAgent>
Source: signAndConnect

Parameters

signer

  • Type: ethers.Signer
The signer to use

config

  • Type: Omit<SyncAgentConfig, "context">
The configuration for the sync agent

Return Type

The sync agent
Promise<SyncAgent>