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.
Click to show internal directories.
Click to hide internal directories.