chainkit

package
v0.0.0-...-4f62844 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockByNumber

func BlockByNumber(number int64) (*types.Block, error)

func BlockNumber

func BlockNumber() (uint64, error)

func GetAbI

func GetAbI(abijson string) abi.ABI

func GetChainLog

func GetChainLog(start, end int64, contracts []common.Address, topics []common.Hash) ([]types.Log, error)

func GetGasLimit

func GetGasLimit(addressSer, formAddress, contractAddress, method string,
	gasPrice *big.Int, abijson string, value string) (uint64, error)

func InitClient

func InitClient(addressSer string)

func NewKeystore

func NewKeystore(auth string) (address string, store string, privatekey string, err error)

生成keystore

func Signature

func Signature(addressSer, privatekey string, nonce int64) (*bind.TransactOpts, common.Address, int64, error)

func SplitVlogData

func SplitVlogData(input string) ([]string, error)

Types

type ChainApi

type ChainApi struct {
	EthRpcAddress string
	// contains filtered or unexported fields
}

func (*ChainApi) BlockByNumber

func (Obj *ChainApi) BlockByNumber(number int64) (*types.Block, error)

func (*ChainApi) BlockNumber

func (Obj *ChainApi) BlockNumber() (uint64, error)

func (*ChainApi) GetChainLog

func (Obj *ChainApi) GetChainLog(start, end int64, contracts []common.Address, topics []common.Hash) ([]types.Log, error)

func (*ChainApi) InitClient

func (Obj *ChainApi) InitClient()

type VlogManager

type VlogManager struct {
	Address       string
	Event         common.Hash
	FunLogHandler func(types.Log)
}

Jump to

Keyboard shortcuts

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