Connecting to Testnet

The simplest way to build around Watr is to use the polkadot.js rpc client. You can download the Polkadot RPC Client herearrow-up-right.

Connecting to the network is as easy as specifying which RPC endpoint to connect to

import { WsProvider, ApiPromise } from "@polkadot/api"

const WATR_ENDPOINT = "wss://rpc.dev.watr.org/"
const provider: WsProvider = new WsProvider(WATR_ENDPOINT)
const api = await ApiPromise.create({ provider })

Last updated