BVS Onboarding
const chainId = "bbn-test-5";
const endpoint = "https://babylon-testnet-rpc.nodes.guru";
import { GasPrice } from "@cosmjs/stargate";
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate";
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
import { stringToPath } from "@cosmjs/crypto";
const gasPrice = GasPrice.fromString("0.002000ubbn");
// create signer object using mnemonic phrase you created in Keplr
const signer = await DirectSecp256k1HdWallet.fromMnemonic("[YOUR MNEMONIC PHRASE]", {
prefix: "bbn",
});
const client = await SigningCosmWasmClient.connectWithSigner(endpoint, signer, { gasPrice });Last updated