client

package
v0.0.0-...-33617a9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps around both Tendermint RPC and Cosmos SDK REST clients that enable to query necessary data

func NewClient

func NewClient(cfg config.NodeConfig) *Client

NewClient creates a new client with the given config

func (Client) Asset

func (c Client) Asset(assetName string) (models.Asset, error)

Asset returns particular asset information given an asset name

func (Client) Assets

func (c Client) Assets(page int, rows int) (models.Assets, error)

Assets returns information of all assets existing in an active chain based upon params

Jump to

Keyboard shortcuts

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