MilkyWay Docs
  • INTRODUCTION
    • Welcome to MilkyWay
    • Mission and Vision
    • MILK
      • Staking
        • Quick Start
      • Governance
        • Quick Start
      • Network Parameters
        • Chain Registry
      • Tokenomics
  • User Guides
    • For Liquid Stakers
      • Celestia (milkTIA)
        • Quick Start
        • Using third party apps
          • Camelot
          • Demex
          • Dymension
          • Levana
          • Margined
          • Mars
          • Osmosis
          • UX
      • Initia (milkINIT)
        • Quick Start
        • Using third party apps
      • Babylon (milkBABY)
        • Quick Start
        • Using third party apps
    • For Restakers
      • Quick Start
      • Creating a wallet
      • Restaking your assets
    • Bridging
      • Hyperlane
      • IBC Eureka
  • Infrastructure Operators
    • For Validators
      • Quick Start
      • Consesus node
      • Validator node
  • For Operators
    • Quick Start
    • Operator Management
    • Opt-in and Opt-out Services
  • For Developers
    • Quick Start
    • Service Management
    • Inviting Operators to Join Your Service
    • Creating Rewards Distribution Plan
  • Architecture
    • Modular Liquid Staking
      • Overview
      • Liquid Staking 101
      • Celestia (milkTIA)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkTIA
          • Contract Specifications
          • APIs specification
      • Initia (milkINIT)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkINIT
          • Liquid staking module specifications
          • Chains specifications
      • Bablyon (milkBABY)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkBABY
          • Liquid staking module specifications
          • Chains specifications
    • Modular Restaking
      • Overview
        • Technical Architecture
        • Design Philosophy
        • Programmable Rules
        • Economic Model
        • Use Cases
      • Restaking 101
      • Modules
        • x/assets
        • x/ibc-hooks
        • x/liquidvesting
        • x/operators
        • x/pools
        • x/restaking
        • x/rewards
        • x/services
        • x/tokenfactory
  • SECURITY
    • Audits
    • Bug Bounty Program
  • APPENDIX
    • Official Links
    • Frequently Asked Questions
    • Glossary
    • Branding Resources
    • Whitepaper (PDF)
Powered by GitBook
On this page
  • Updating the details of a service
  • Marking a service as active
  • Deactivating a service
  1. For Developers

Service Management

In order to register as an Actively Validated Service within our restaking protocol you can use the following command:

milkywayd tx services create [Your-service-name] \
  --description <Your service description> \
  --picture <The URL of the picture for your service> \
  --website <The URL of your website>

Where:

  • [Your-service-name] identifies the name of the service you want to register.

  • --description allows to set a brief description of the service you are registering (optional).

  • --picture allows you to set the URL of the picture that will be shown to users inside our AVSs explorer (optional).

  • --website allows to set the URL of your website (optional).

This command will run a transaction registering your service within the MilkyWay chain and assigning it a unique ID. Please note down this ID as it's going to be needed to run any transaction regarding your service.

Updating the details of a service

If you ever want to update some details about a service (e.g. the name, description, website, etc) you can do so with this command:

milkywayd tx services update [service-id] \
  --description <Your service description> \
  --picture <The URL of the picture for your service> \
  --website <The URL of your website>

Where:

  • [service-id] is the unique ID of your service.

  • --description is the new description (optional).

  • --picture is the new the URL of the picture (optional).

  • --website is the new URL of your website (optional).

Marking a service as active

Once you have successfully registered a service, the next thing you have to do is mark it as active. This will signal operators that they can join you on the MilkyWay chain, to start receiving rewards in exchange for running your binary file. To mark yourself as active you can run the following transaction:

milkywayd tx services activate [service-id]

Where:

  • [service-id] is the unique ID of your service.

Once the transaction is successfully executed, the service will be marked as ACTIVE inside the chain.

Deactivating a service

If you ever need to run maintainance on your service (e.g. updating the rewards distribution plan, or changing something) you can mark your service as INACTIVE. This will make sure that rewards are no longer distributing to operators or users. To do so, you can run the following transaction:

milkywayd tx services deactivate [service-id]

Where:

  • [service-id] is the unique ID of your service.

Once the service has been set as INACTIVE, you can reactivate it by following this guide: Marking a service as active.

PreviousQuick StartNextInviting Operators to Join Your Service

Last updated 6 months ago