@polkadot/api
to connect and interact with the Root Network node.
api
instance to interact with nodefunction getApiOptions()
ApiOptions
object that contains necessary types and RPC methods to connect The Root Network.
function getPublicProvider(network: NetworkName, useWsProvider?: boolean)
provider
instance of either WsProvider
or HttpProvider
that connects to TRN mainnet "root"
or testnet "porcini"
.