grpc

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 36 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefGasLimit int64 = 200000

Variables

This section is empty.

Functions

func BuildTxV1

func BuildTxV1(chainId string, sequence, accountNumber uint64, privKey cryptotypes.PrivKey, msgs []sdk.Msg, gasPrice sdk.Coin, gasLimit int64, memo string, timeout uint64) (*tx.TxRaw, error)

func BuildTxV2

func BuildTxV2(chainId string, sequence, accountNumber uint64, privKey cryptotypes.PrivKey, msgs []sdk.Msg, gasPrice sdk.Coin, gasLimit int64) (*tx.TxRaw, error)

BuildTxV2 nolint

func NewGrpcConn

func NewGrpcConn(rawUrl string) (*grpc.ClientConn, error)

Types

type Client

type Client struct {
	*grpc.ClientConn
	// contains filtered or unexported fields
}

func NewClient

func NewClient(rawUrl string) (*Client, error)

func (*Client) AppVersion

func (cli *Client) AppVersion() (string, error)

func (*Client) AuthQuery

func (cli *Client) AuthQuery() authtypes.QueryClient

func (*Client) AuthzQuery

func (cli *Client) AuthzQuery() authz.QueryClient

func (*Client) BankQuery

func (cli *Client) BankQuery() banktypes.QueryClient

func (*Client) BroadcastTx

func (cli *Client) BroadcastTx(txRaw *tx.TxRaw, mode ...tx.BroadcastMode) (*sdk.TxResponse, error)

func (*Client) BroadcastTxBytes

func (cli *Client) BroadcastTxBytes(txBytes []byte, mode ...tx.BroadcastMode) (*sdk.TxResponse, error)

func (*Client) BroadcastTxOk

func (cli *Client) BroadcastTxOk(txRaw *tx.TxRaw, mode ...tx.BroadcastMode) (*sdk.TxResponse, error)

func (*Client) BuildTx

func (cli *Client) BuildTx(privKey cryptotypes.PrivKey, msgs []sdk.Msg) (*tx.TxRaw, error)

func (*Client) BuildTxV1

func (cli *Client) BuildTxV1(privKey cryptotypes.PrivKey, from string, msgs []sdk.Msg, gasLimit int64, memo string, timeout uint64) (*tx.TxRaw, error)

func (*Client) BuildTxV2

func (cli *Client) BuildTxV2(privKey cryptotypes.PrivKey, msgs []sdk.Msg, gasLimit int64, memo string, timeout uint64) (*tx.TxRaw, error)

func (*Client) CrosschainQuery

func (cli *Client) CrosschainQuery() crosschaintypes.QueryClient

func (*Client) DistrQuery

func (cli *Client) DistrQuery() distrtypes.QueryClient

func (*Client) ERC20Query

func (cli *Client) ERC20Query() erc20types.QueryClient

func (*Client) EVMQuery

func (cli *Client) EVMQuery() evmtypes.QueryClient

func (*Client) EstimatingGas

func (cli *Client) EstimatingGas(raw *tx.TxRaw) (*sdk.GasInfo, error)

func (*Client) EvidenceQuery

func (cli *Client) EvidenceQuery() evidencetypes.QueryClient

func (*Client) FeegrantQuery

func (cli *Client) FeegrantQuery() feegrant.QueryClient

func (*Client) GetAddressPrefix

func (cli *Client) GetAddressPrefix() (string, error)

func (*Client) GetBlockByHeight

func (cli *Client) GetBlockByHeight(blockHeight int64) (*tenderminttypes.Block, error)

func (*Client) GetBlockHeight

func (cli *Client) GetBlockHeight() (int64, error)

func (*Client) GetBlockTimeInterval

func (cli *Client) GetBlockTimeInterval() (time.Duration, error)

func (*Client) GetChainId

func (cli *Client) GetChainId() (string, error)

func (*Client) GetGasPrices

func (cli *Client) GetGasPrices() (sdk.Coins, error)

func (*Client) GetLatestBlock

func (cli *Client) GetLatestBlock() (*tenderminttypes.Block, error)

func (*Client) GetMintDenom

func (cli *Client) GetMintDenom() (string, error)

func (*Client) GetStakingDenom added in v2.3.0

func (cli *Client) GetStakingDenom() (string, error)

func (*Client) GetStatusByTx

func (cli *Client) GetStatusByTx(txHash string) (*tx.GetTxResponse, error)

func (*Client) GovQuery

func (cli *Client) GovQuery() govtypes.QueryClient

func (*Client) MigrateQuery

func (cli *Client) MigrateQuery() migratetypes.QueryClient

func (*Client) MintQuery

func (cli *Client) MintQuery() minttypes.QueryClient

func (*Client) QueryAccount

func (cli *Client) QueryAccount(address string) (authtypes.AccountI, error)

func (*Client) QueryBalance

func (cli *Client) QueryBalance(address string, denom string) (sdk.Coin, error)

func (*Client) QueryBalances

func (cli *Client) QueryBalances(address string) (sdk.Coins, error)

func (*Client) QuerySupply

func (cli *Client) QuerySupply() (sdk.Coins, error)

func (*Client) ServiceClient

func (cli *Client) ServiceClient() tx.ServiceClient

func (*Client) SlashingQuery

func (cli *Client) SlashingQuery() slashingtypes.QueryClient

func (*Client) StakingQuery

func (cli *Client) StakingQuery() stakingtypes.QueryClient

func (*Client) TMServiceClient

func (cli *Client) TMServiceClient() tmservice.ServiceClient

func (*Client) TxByHash

func (cli *Client) TxByHash(txHash string) (*sdk.TxResponse, error)

func (*Client) UpgradeQuery

func (cli *Client) UpgradeQuery() upgradetypes.QueryClient

func (*Client) WithContext

func (cli *Client) WithContext(ctx context.Context)

func (*Client) WithGasPrices

func (cli *Client) WithGasPrices(gasPrices sdk.Coins)

Directories

Path Synopsis
base
gasprice
Package gasprice is a reverse proxy.
Package gasprice is a reverse proxy.
gasprice/legacy
Package legacy is a reverse proxy.
Package legacy is a reverse proxy.

Jump to

Keyboard shortcuts

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