util

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The util package contains utility functions for the Kava gRPC client.

For example, `account.go` includes account-related query helpers. In this file, utilities such as `client.Util.BaseAccount(addr)` is exposed to query an account and return an unpacked `BaseAccount` instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

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

Util contains utility functions for the Kava gRPC client

func NewUtil

func NewUtil(query *query.QueryClient) *Util

NewUtil creates a new Util instance

func (*Util) Account

func (u *Util) Account(addr string) (authtypes.AccountI, error)

Account fetches an account via an address and returns the unpacked account

func (*Util) BaseAccount

func (u *Util) BaseAccount(addr string) (authtypes.BaseAccount, error)

BaseAccount fetches a base account via an address or returns an error if the account is not a base account

func (*Util) CtxAtHeight

func (u *Util) CtxAtHeight(height int64) context.Context

Jump to

Keyboard shortcuts

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