web3

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandler

type APIHandler func() (http.Handler, bool)

type Status

type Status string
const (
	CLOSE Status = "CLOSE"
	OPEN  Status = "OPEN"
)

type Web3

type Web3 struct {
	*component.BaseComponent
	// contains filtered or unexported fields
}

func NewWeb3

func NewWeb3(cfg *config.Config, rpc *rpc.AergoRPCService) *Web3

func (*Web3) AfterStart

func (web3 *Web3) AfterStart()

func (*Web3) BeforeStart

func (web3 *Web3) BeforeStart()

func (*Web3) BeforeStop

func (web3 *Web3) BeforeStop()

func (*Web3) Receive

func (web3 *Web3) Receive(context actor.Context)

func (*Web3) Statistics

func (web3 *Web3) Statistics() *map[string]interface{}

type Web3APIv1

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

func (*Web3APIv1) Blockchain

func (api *Web3APIv1) Blockchain() (handler http.Handler, ok bool)

func (*Web3APIv1) ChainStat

func (api *Web3APIv1) ChainStat() (handler http.Handler, ok bool)

func (*Web3APIv1) CommitTX

func (api *Web3APIv1) CommitTX() (handler http.Handler, ok bool)

func (*Web3APIv1) GetABI

func (api *Web3APIv1) GetABI() (handler http.Handler, ok bool)

func (*Web3APIv1) GetAccountVotes

func (api *Web3APIv1) GetAccountVotes() (handler http.Handler, ok bool)

func (*Web3APIv1) GetBalance

func (api *Web3APIv1) GetBalance() (handler http.Handler, ok bool)

func (*Web3APIv1) GetBlock

func (api *Web3APIv1) GetBlock() (handler http.Handler, ok bool)

func (*Web3APIv1) GetBlockBody

func (api *Web3APIv1) GetBlockBody() (handler http.Handler, ok bool)

func (*Web3APIv1) GetBlockMetadata

func (api *Web3APIv1) GetBlockMetadata() (handler http.Handler, ok bool)

func (*Web3APIv1) GetBlockTransactionCount

func (api *Web3APIv1) GetBlockTransactionCount() (handler http.Handler, ok bool)

func (*Web3APIv1) GetChainId

func (api *Web3APIv1) GetChainId() (handler http.Handler, ok bool)

func (*Web3APIv1) GetChainInfo

func (api *Web3APIv1) GetChainInfo() (handler http.Handler, ok bool)

func (*Web3APIv1) GetConsensusInfo

func (api *Web3APIv1) GetConsensusInfo() (handler http.Handler, ok bool)

func (*Web3APIv1) GetEnterpriseConfig

func (api *Web3APIv1) GetEnterpriseConfig() (handler http.Handler, ok bool)

func (*Web3APIv1) GetNameInfo

func (api *Web3APIv1) GetNameInfo() (handler http.Handler, ok bool)

func (*Web3APIv1) GetPeers

func (api *Web3APIv1) GetPeers() (handler http.Handler, ok bool)

func (*Web3APIv1) GetReceipt

func (api *Web3APIv1) GetReceipt() (handler http.Handler, ok bool)

func (*Web3APIv1) GetReceipts

func (api *Web3APIv1) GetReceipts() (handler http.Handler, ok bool)

func (*Web3APIv1) GetServerInfo

func (api *Web3APIv1) GetServerInfo() (handler http.Handler, ok bool)

func (*Web3APIv1) GetStaking

func (api *Web3APIv1) GetStaking() (handler http.Handler, ok bool)

func (*Web3APIv1) GetState

func (api *Web3APIv1) GetState() (handler http.Handler, ok bool)

func (*Web3APIv1) GetStateAndProof

func (api *Web3APIv1) GetStateAndProof() (handler http.Handler, ok bool)

func (*Web3APIv1) GetTX

func (api *Web3APIv1) GetTX() (handler http.Handler, ok bool)

func (*Web3APIv1) GetVotes

func (api *Web3APIv1) GetVotes() (handler http.Handler, ok bool)

func (*Web3APIv1) ListBlockHeaders

func (api *Web3APIv1) ListBlockHeaders() (handler http.Handler, ok bool)

func (*Web3APIv1) ListBlockMetadata

func (api *Web3APIv1) ListBlockMetadata() (handler http.Handler, ok bool)

func (*Web3APIv1) ListEvents

func (api *Web3APIv1) ListEvents() (handler http.Handler, ok bool)

func (*Web3APIv1) Metric

func (api *Web3APIv1) Metric() (handler http.Handler, ok bool)

func (*Web3APIv1) NewHandler

func (api *Web3APIv1) NewHandler()

func (*Web3APIv1) NodeState

func (api *Web3APIv1) NodeState() (handler http.Handler, ok bool)

func (*Web3APIv1) QueryContract

func (api *Web3APIv1) QueryContract() (handler http.Handler, ok bool)

func (*Web3APIv1) QueryContractState

func (api *Web3APIv1) QueryContractState() (handler http.Handler, ok bool)

Jump to

Keyboard shortcuts

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