account

package
v2.10.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GRPCBlockHeightHeader = "x-cosmos-block-height"

GRPCBlockHeightHeader represents the gRPC header for block height.

Variables

This section is empty.

Functions

func NewAccountRetriever

func NewAccountRetriever(ac address.Codec, conn gogogrpc.ClientConn, registry codectypes.InterfaceRegistry) *accountRetriever

NewAccountRetriever creates a new instance of accountRetriever.

Types

type Account

type Account interface {
	GetAddress() sdk.AccAddress
	GetPubKey() cryptotypes.PubKey // can return nil.
	GetAccountNumber() uint64
	GetSequence() uint64
}

Account provides a read-only abstraction over the auth module's AccountI.

type AccountRetriever

type AccountRetriever interface {
	GetAccount(context.Context, []byte) (Account, error)
	GetAccountWithHeight(context.Context, []byte) (Account, int64, error)
	EnsureExists(context.Context, []byte) error
	GetAccountNumberSequence(context.Context, []byte) (accNum, accSeq uint64, err error)
}

AccountRetriever defines methods required to retrieve account details necessary for transaction signing.

Jump to

Keyboard shortcuts

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