This page describes how to create an operator, register it in SatLayer, and create a vault on SatLayer testnet. SatLayer's testnet exists as a set of smart contracts on top of Babylon's own testnetbbn-test-5.
In order to onboard onto SatLayer testnet, operators have to complete the following steps:
1) Generate an address via a wallet app such as Keplr.
2) Instantiate your address as a signer.
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 });
After completing these steps, you will have created an operatorand a vault, linked them together, and whitelisted this vaultin the router. The final step to get set up on testnet is to identify a Bitcoin Validated Service (BVS) you wish to validate and register to validate it.
6) Register services you want to validate to your operator. First you need to identify the address of the service in SatLayer. This address represents the BVS'es on-chain footprint.