Creating a connection for each network
import { ConnectionService, Environments } from "@peersyst/ckb-wallet-sdk";
const mainnetConnection = new ConnectionService(
process.env.RPC_URL_MAIN,
process.env.INDEXER_URL_MAIN,
Environments.Mainnet,
);
const testnetConnection = new ConnectionService(
process.env.RPC_URL_TEST,
process.env.INDEXER_URL_TEST,
Environments.Testnet,
);
export { mainnetConnection, testnetConnection };Last updated