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
        • 5 Million Sats² OKX Wallet Giveaway Rewards
        • The Order of the Sats
      • Past Campaigns
        • OKX Cryptopedia
        • Journey to the Sats
        • The Great BTC Meme War
  • Partner Rewards
    • Babylon
    • Bedrock
    • Tower Finance
  • 🎛️Operators
    • Overview
    • 👉Apply as Operator
  • BVS Developers
    • Introduction
  • 👉Apply as 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
  • transfer-owner
  • set-delegation-manager
  • set-strategy-whitelist
  • remove-strategy-from-whitelist
  • add-strategy-to-whitelist
  • set-third-transfer-forbidden
  • deposit-strategy
  • get-deposits
  • get-staker-strategy-list-length
  • get-staker-strategy-shares
  • is-third-transfer-forbidden
  • get-staker-strategy-list
  • get-owner
  • is-strategy-whitelisted

Was this helpful?

  1. BVS Developers
  2. Developer Toolbox
  3. SatLayer CLI

Strategy

The strategy subcommand handles operations regarding a strategy. Most users should not need access to these commands as they directly control a strategy.

transfer-owner

Transfer the owner of the strategy contract, specified in the configuration file

satlayer-cli strategy transfer-owner <user-key-name> <new-owner-address>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • new-owner-address - address of the new owner of the strategy

set-delegation-manager

Set the delegation manager interacting with the strategy contract

satlayer-cli strategy set-delegation-manager <user-key-name> <delegation-manager-address>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • delegation-manager-address - address of the delegation manager

set-strategy-whitelist

Sets the account to the list of accounts that is allowed to add strategy to the strategy whitelist.

satlayer-cli strategy set-strategy-whitelist <user-key-name> <address>
  • user-key-name - name of the key in the keyring to use for contract execution

  • address - the address to be allowed to add strategy to the strategy whitelist

remove-strategy-from-whitelist

Removes a strategy from the strategy whitelist.

satlayer-cli strategy remove-strategy-from-whitelist <user-key-name> <strategy-address>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - address of the strategy contract to be removed

add-strategy-to-whitelist

Add a strategy to the strategy whitelist

satlayer-cli strategy add-strategy-towhitelist <user-key-name> <strategy-address> <disallow-3rd-party>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • disallow-3rd-party - boolean, true or false. If 3rd party transfers are allowed

set-third-transfer-forbidden

Set if 3rd party transfers are disallowed for a strategy

satlayer-cli strategy set-third-transfer-forbidden <user-key-name> <strategy-address> <disallow-3rd-party>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • disallow-3rd-party - boolean, true or false. If 3rd party transfers are allowed

deposit-strategy

Deposit into the strategy from the wallet address set in the configuration file

satlayer-cli strategy deposit-strategy <user-key-name> <strategy-addresss> <token-address> <amount>

In which:

  • user-key-name - name of the key in the keyring to use for contract execution

  • strategy-address - the address of the strategy contract to be added

  • token-address - the address of the CW20 token

  • amount - the amount to be deposited

get-deposits

Query a staker's deposit information regarding a strategy

satlayer-cli strategy get-deposits <staker-address> <strategy-adress>

In which:

  • staker-address - the address of the staker you are querying

  • strategy-address - the address of the strategy

get-staker-strategy-list-length

Queries how many strategy a staker has staked into

satlayer-cli strategy get-staker-strategy-list-length <staker>

In which:

  • staker-address - the address of the staker you are querying

get-staker-strategy-shares

Query how many shares a staker owns given a strategy

satlayer-cli strategy get-staker-strategy-shares <staker-address> <strategy-adress>

In which:

  • staker-address - the address of the staker you are querying

  • strategy-address - the address of the strategy

is-third-transfer-forbidden

Queries if 3rd perty transfer is disallowed (set by set-third-transfer-forbidden).

satlayer-cli strategy is-third-transfer-forbidden <strategy-address>

In which:

  • strategy-address - the address of the strategy

get-staker-strategy-list

Queries the list of strategy a staker has staked into

satlayer-cli strategy get-staker-strategy-list-length <staker>

In which:

  • staker-address - the address of the staker you are querying

get-owner

Queries the owner of the strategy, set in the configuration file.

satlayer-cli strategy get-owner

is-strategy-whitelisted

Query is a strategy is whitelisted

satlayer-cli strategy is-strategy-whitelisted <strategy-address>

In which:

  • strategy-address - The address of the strategy

Last updated 6 months ago

Was this helpful?

🛠️