Quick Start

To use Tomo Web SDK, you need to install the following:

npm install @tomo-inc/tomo-web-sdk

or

pnpm i @tomo-inc/tomo-web-sdk

Prepare the Client ID

  1. Talk to us to create an developer account.

  2. Create a new project and copy the generated clientId.

  3. Use this clientId in your TomoContextProvider.

Tomo's Developer Dashboard

Initialize Tomo Web SDK

Set up TomoContextProvider using the clientId from the first step. For react framework:

For pure Javascript project:

Use Tomo

We expose the wallet state and functions through useTomo() method

To connect a wallet, call openConnectModal to display the modal.

Checking connection status:

Disconnect the wallet:

Demo

We provide a demo application to show the functionalities and UI components:

https://socialwallet-react-demo.tomo.inc/\

FAQ

  1. How to use with Next.js?

Additionally, manually install core-js-pure.

Last updated