chain

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Prefix   string `json:"prefix"`
	RPC      string `json:"rpc"`
	CoinType uint32 `json:"coin_type"`
	// contains filtered or unexported fields
}

func (Chain) DecodeAddr added in v1.1.0

func (chain Chain) DecodeAddr(a string) (cosmostypes.AccAddress, error)

func (*Chain) ImportMnemonic

func (chain *Chain) ImportMnemonic(mnemonic string) error

func (Chain) MultiSend added in v1.1.0

func (chain Chain) MultiSend(toAddr []cosmostypes.AccAddress, coins []cosmostypes.Coins, fees cosmostypes.Coins) error

func (Chain) Send

func (chain Chain) Send(toAddr string, coins cosmostypes.Coins, fees cosmostypes.Coins) error

type Chains

type Chains []*Chain

func (Chains) FindByPrefix

func (chains Chains) FindByPrefix(prefix string) *Chain

func (Chains) ImportMnemonic

func (chains Chains) ImportMnemonic(ctx context.Context, mnemonic string) error

Jump to

Keyboard shortcuts

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