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

Imports

import { signAndConnect } from '@river-build/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>