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 here.

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://"
const provider: WsProvider = new WsProvider(WATR_ENDPOINT)
const api = await ApiPromise.create({ provider })

Last updated