LogoLogo
  • Welcome to DeOSS Guide !
  • Introduction
    • Terminologies
    • System Architecture
    • Data Access Process
  • Product Pricing
  • Get Started
    • Configure CESS Account
    • DeOSS Gateway
      • Set up your Own Gateway
      • Step 1: Create a Bucket
      • Step 2: Upload an Object
      • Step 3: Download an Object
      • Step 4: Delete the Object and Buckets
    • GO-SDK
      • Preface
      • Initialize SDK
      • SDK client properties
        • View signature account
        • View the public key of the signing account
        • Check the connected RPC address
        • View sdk name
        • View signature account mnemonic phrase
      • File operation related
        • Storage space operations related
          • Buy space
          • Expansion space
          • Renewal space
          • Authorized space
          • Cancel authorization space
        • Bucket creation
        • Upload local file
        • Upload object
        • Upload file stream
        • File download
        • File delete
        • File encryption
        • File decryption
        • File specification processing
      • Chain operation related
        • Chain status
          • View DeOSS list
          • View all storage node accounts
          • View storage node details
          • View user space details
          • View account details
          • View token symbols
          • View block synchronization information
          • View chain version number
        • Chain transaction
          • Create storage order
          • Transfer
    • JS-SDK
      • General Usage
      • Bucket Operation
      • File Operation
      • Space Operation
      • Auth Operation
      • API library
    • Rust-SDK
      • Initialize SDK
      • Buy Space
      • Authorize Space
      • Bucket Creation
      • File Upload
      • File Download
      • File Encryption
      • File Decryption
  • API Reference
    • Introduction
    • Identity signature
    • Working with Objects
      • PutObject
      • GetObject
      • DeleteObject
      • GetObjectInfo
    • Working with Buckets
      • PutBucket
      • GetBucket
      • DeleteBucket
      • ListBucket
Powered by GitBook
On this page
  1. Get Started
  2. GO-SDK
  3. Chain operation related
  4. Chain status

View all storage node accounts

This section describes how to view the account addresses of all storage nodes on the chain.

The reference code is as follows:

package main

import (
	"context"
	"fmt"

	cess "github.com/CESSProject/cess-go-sdk"
)

var RPC_ADDRS = []string{
	"wss://testnet-rpc0.cess.cloud/ws/",
	"wss://testnet-rpc1.cess.cloud/ws/",
	"wss://testnet-rpc2.cess.cloud/ws/",
}

func main() {
	sdk, err := cess.New(
		context.Background(),
		cess.ConnectRpcAddrs(RPC_ADDRS),
	)
	if err != nil {
		panic(err)
	}
	// Query all storage node accounts
	fmt.Println(sdk.QuerySminerList())
}
PreviousView DeOSS listNextView storage node details

Last updated 1 year ago