TomoContextProvider props

TomoContextProvider is the primary provider for the Tomo Connect SDK. It initializes the SDK and configures its settings and controls the UI component.

Here is the full list of props that can be passed to the TomoContextProvider.

Settings

PropertyTypeDescription

clientId

string

Client ID applied from Tomo's social dashboard

evmDefaultChainId?

number

Selected EVM chain id, default is 1

evmChains?

(TomoChain | number)[]

Supported EVM chains, default is all

chainTypes?

ChainType[]

Supported chains, default are EVM chains, Solana, Bitcoin

sdkMode?

string

Used for developer mode, allowed value is undefined | 'dev', default is undefined

logLevel?

string

Used for developer mode, allowed value is undefined | 'debug', default is undefined

Related type definitions are:

import { Chain } from 'viem'

export type ChainType = 'evm' | 'bitcoin' | 'solana'
export type TomoChain = Chain<undefined> & { img?: string }

Last updated