SatLayer
Restake now
  • 🟨Overview
    • Introduction to SatLayer
  • SatLayer on Babylon
  • 🏛️Architecture
    • SatLayer Overview
  • Roadmap
  • Protocol Rewards
  • Slashing
  • SatLayer Contracts
  • 🔓Security
    • Audits
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Contracts
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Bug Bounty
  • 🪙Restakers
    • How to Restake
    • Sats² Staker Rewards
      • Earning Sats²
      • Monthly Sats² Sprints
      • Referral Guide
      • Sats² FAQs
      • Current Campaigns
        • The Order of the Sats
        • Bitcoin Pizza Day Promo: 3x Sats² Multiplier Boost
        • SatLayer x Pulsar Money Bitcoin Restaking Challenge
      • Past Campaigns
        • OKX Cryptopedia
        • Journey to the Sats
        • The Great BTC Meme War
        • 5 Million Sats² OKX Wallet Giveaway Rewards
  • Partner Rewards
    • Babylon
    • Bedrock
    • Tower Finance
    • Boyco
    • Turtle Club for TAC
  • How to Yap
  • 🎛️Operators
    • Overview
    • 👉Apply as an Operator
  • BVS Developers
    • Introduction
    • 👉Apply as a Developer
  • SatLayer Testnet
    • Operator Onboarding
    • BVS Onboarding
  • 🧊Cube by SatLayer
    • Introduction
    • Understanding the LST
    • How to Stake
      • Cube and cBABY FAQ
  • 🧰Resources
    • Website
    • Discord
    • Twitter
    • GitHub
    • SatLayer Brand Guidelines
Powered by GitBook
On this page

Was this helpful?

  1. SatLayer Testnet

BVS Onboarding

This page describes how to create a BVS, and register it in SatLayer to an operator for it to be validated. You can participate even now You can experiment with this functionality on SatLayer's testnet now. SatLayer's testnet exists as a set of smart contracts on top of Babylon's own testnet.

The following guide will take you through the process of creating a BVS address, registering it in SatLayer, and registering an operator to validate it.

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 });

3) Register your service in the registry

const registry = "bbn1a9tleevqygn862ll2la49g637fjttfzzlttdrmmua35fadpuvnksuyud7a";

const executeMsg = {
    register_as_service: {
        metadata: {
            name: "[YOUR SERVICE NAME]",
            uri: "[YOUR SERVICE URI]"
        }
    }
};

await client.execute("[YOUR SERVICE ADDRESS]", registry, executeMsg, "auto");
const executeMsg = {
    register_operator_to_service: {
        operator: "[OPERATOR ADDRESS]"
    }
}

await client.execute("[YOUR SERVICE ADDRESS]", registry, executeMsg, "auto");
PreviousOperator OnboardingNextIntroduction

Last updated 1 month ago

Was this helpful?

4) Link your service to an operator to enable that operator to begin validating your service (the operator will need to as well).

5) Once your BVS is registered, you can reward registered operators and their stakers using the methodology described .

link to your service
here