client

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

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 uint64 = 200000

Variables

This section is empty.

Functions

func BuildEthTransaction

func BuildEthTransaction(ctx context.Context, cli *ethclient.Client, priKey cryptotypes.PrivKey, to *common.Address, value *big.Int, data []byte) (*ethtypes.Transaction, error)

func BuildTxRaw

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

func BuildTxRawWithCli

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

func GetChainInfo

func GetChainInfo(cli buildTxClient, from string) (account authtypes.AccountI, chainId string, gasPrice sdk.Coin, err error)

func NewAccountCodec

func NewAccountCodec() types.InterfaceRegistry

func NewAuthInfo

func NewAuthInfo(pubKey cryptotypes.PubKey, sequence, gasLimit uint64, gasPrice sdk.Coin) (*tx.AuthInfo, error)

func NewTxBody

func NewTxBody(msgs []sdk.Msg, memo string, timeout uint64) (*tx.TxBody, error)

func WaitMined

func WaitMined(cli waitMinedClient, txHash string, timeout, pollInterval time.Duration) (*sdk.TxResponse, error)

Types

This section is empty.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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