client

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cosmos

type Cosmos struct {
	// contains filtered or unexported fields
}

func NewCosmos

func NewCosmos(ctx context.Context, accName string, options ...cosmosclient.Option) (*Cosmos, error)

NewCosmos creates a Sonr Blockchain client with the given account and provides helper functions

func (*Cosmos) AccountName

func (cc *Cosmos) AccountName() string

AccountName returns the account name as string

func (*Cosmos) Address added in v0.20.2

func (cc *Cosmos) Address() string

AccountName returns the account name as string

func (*Cosmos) BroadcastRegisterName

func (cc *Cosmos) BroadcastRegisterName(msg *types.MsgRegisterName) (cosmosclient.Response, error)

BroadcastTx broadcasts a transaction to the blockchain

func (*Cosmos) QueryAllNames

func (cc *Cosmos) QueryAllNames() ([]types.WhoIs, error)

QueryAllNames returns all names registered on the blockchain

func (*Cosmos) QueryName

func (cc *Cosmos) QueryName(name string) (*types.WhoIs, error)

QueryAllNames returns all names registered on the blockchain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL