cita

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CitaClient

type CitaClient struct {
	client.Client
}

func NewCitaClient

func NewCitaClient(config *config.Config) (*CitaClient, error)

initialize client requested by cita

func (*CitaClient) EventQuery added in v1.1.1

func (c *CitaClient) EventQuery() (*eventres.QueryEventResData, error)

query event list

func (*CitaClient) EventRegister added in v1.1.1

register cita event listeners

func (*CitaClient) EventRemove added in v1.1.1

remove event

func (*CitaClient) GetBlockHeight

func (c *CitaClient) GetBlockHeight() (*noderes.BlockHeightResData, error)

get block height

func (*CitaClient) GetBlockInfo

func (c *CitaClient) GetBlockInfo(body nodereq.BlockReqDataBody) (*noderes.BlockResData, error)

get block information

func (*CitaClient) GetTxInfoByTxHash

func (c *CitaClient) GetTxInfoByTxHash(body nodereq.TxTransReqDataBody) (*noderes.BlockTxResData, error)

get transaction information

func (*CitaClient) GetTxReceiptByTxHash

func (c *CitaClient) GetTxReceiptByTxHash(body nodereq.TxTransReqDataBody) (*noderes.BlockTxReceiptResData, error)

get transaction Receipt

func (*CitaClient) RegisterUser

register user

func (*CitaClient) ReqChainCode

func (c *CitaClient) ReqChainCode(body nodereq.TransReqDataBody) (*noderes.TransResData, error)

DApp transaction in public key trust mode

func (*CitaClient) Trans added in v1.1.1

DApp transaction in public key upload mode

Jump to

Keyboard shortcuts

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