Connect to River using a SignerContext

Useful for server side code: you can persist the signer context and use it to auth with River later

Imports

import { connectRiver } from '@river-build/react-sdk'

Definition

function connectRiver(
  signerContext: SignerContext,
  config: Omit<SyncAgentConfig, 'context'>,
): Promise<SyncAgent>

Source: connectRiver

Parameters

signerContext

  • Type: SignerContext

The signer context to use

config

  • Type: Omit<SyncAgentConfig, 'context'>

The configuration for the sync agent

Return Type

The sync agent

Promise<SyncAgent>