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. SDK client properties

View signature account

The signing account serves as the unique identity of the SDK.

The reference code is as follows:

package main

import (
	"context"
	"fmt"

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

// Substrate well-known mnemonic:
//
//	https://github.com/substrate-developer-hub/substrate-developer-hub.github.io/issues/613
var MY_MNEMONIC = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"

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),
		cess.Mnemonic(MY_MNEMONIC),
	)
	if err != nil {
		panic(err)
	}

	// Query signature account
	fmt.Println(sdk.GetSignatureAcc())
}
PreviousSDK client propertiesNextView the public key of the signing account

Last updated 1 year ago