Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2020 Changes in this version + const BlockLimit + const V2_5_0 + type APIHandler struct + func NewAPIHandler(c *conn.Connection) *APIHandler + func (api *APIHandler) AsyncSendRawTransaction(ctx context.Context, groupID int, tx *types.Transaction, ...) error + func (api *APIHandler) BroadcastAMOPMsg(topic string, data []byte) error + func (api *APIHandler) BroadcastAMOPPrivateMsg(topic string, data []byte) error + func (api *APIHandler) Call(ctx context.Context, groupID int, msg ethereum.CallMsg) ([]byte, error) + func (api *APIHandler) GetBlockByHash(ctx context.Context, groupID int, bhash string, includetx bool) ([]byte, error) + func (api *APIHandler) GetBlockByNumber(ctx context.Context, groupID int, bnum string, includetx bool) ([]byte, error) + func (api *APIHandler) GetBlockHashByNumber(ctx context.Context, groupID int, bnum string) ([]byte, error) + func (api *APIHandler) GetBlockLimit(ctx context.Context, groupID int) (*big.Int, error) + func (api *APIHandler) GetBlockNumber(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetChainID(ctx context.Context) (*big.Int, error) + func (api *APIHandler) GetClientVersion(ctx context.Context) ([]byte, error) + func (api *APIHandler) GetCode(ctx context.Context, groupID int, addr string) ([]byte, error) + func (api *APIHandler) GetConsensusStatus(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetContractAddress(ctx context.Context, groupID int, txhash string) (common.Address, error) + func (api *APIHandler) GetGroupList(ctx context.Context) ([]byte, error) + func (api *APIHandler) GetGroupPeers(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetNodeIDList(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetObserverList(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetPBFTView(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetPeers(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetPendingTransactions(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetPendingTxSize(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetSealerList(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetSyncStatus(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetSystemConfigByKey(ctx context.Context, groupID int, configKey string) ([]byte, error) + func (api *APIHandler) GetTotalTransactionCount(ctx context.Context, groupID int) ([]byte, error) + func (api *APIHandler) GetTransactionByBlockHashAndIndex(ctx context.Context, groupID int, bhash string, txindex string) ([]byte, error) + func (api *APIHandler) GetTransactionByBlockNumberAndIndex(ctx context.Context, groupID int, bnum string, txindex string) ([]byte, error) + func (api *APIHandler) GetTransactionByHash(ctx context.Context, groupID int, txhash string) ([]byte, error) + func (api *APIHandler) GetTransactionReceipt(ctx context.Context, groupID int, txhash string) (*types.Receipt, error) + func (api *APIHandler) PublishPrivateTopic(topic string, publicKey []*ecdsa.PublicKey) error + func (api *APIHandler) SendAMOPMsg(topic string, data []byte) ([]byte, error) + func (api *APIHandler) SendAMOPPrivateMsg(topic string, data []byte) ([]byte, error) + func (api *APIHandler) SendRawTransaction(ctx context.Context, groupID int, tx *types.Transaction) (*types.Receipt, error) + func (api *APIHandler) SubscribeBlockNumberNotify(groupID uint64, handler func(int64)) error + func (api *APIHandler) SubscribePrivateTopic(topic string, privateKey *ecdsa.PrivateKey, handler func([]byte, *[]byte)) error + func (api *APIHandler) SubscribeTopic(topic string, handler func([]byte, *[]byte)) error + func (api *APIHandler) TransactionReceipt(ctx context.Context, groupID int, txHash common.Hash) (*types.Receipt, error) + func (api *APIHandler) UnsubscribeBlockNumberNotify(groupID uint64) error + func (api *APIHandler) UnsubscribePrivateTopic(topic string) error + func (api *APIHandler) UnsubscribeTopic(topic string) error + type Client struct + func Dial(config *conf.Config) (*Client, error) + func DialContext(ctx context.Context, config *conf.Config) (*Client, error) + func (c *Client) AsyncSendTransaction(ctx context.Context, tx *types.Transaction, ...) error + func (c *Client) BroadcastAMOPMsg(topic string, data []byte) error + func (c *Client) BroadcastAMOPPrivateMsg(topic string, data []byte) error + func (c *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + func (c *Client) Close() + func (c *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + func (c *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) + func (c *Client) GetBlockByHash(ctx context.Context, bhash string, includetx bool) ([]byte, error) + func (c *Client) GetBlockByNumber(ctx context.Context, bnum string, includetx bool) ([]byte, error) + func (c *Client) GetBlockHashByNumber(ctx context.Context, bnum string) ([]byte, error) + func (c *Client) GetBlockLimit(ctx context.Context) (*big.Int, error) + func (c *Client) GetBlockNumber(ctx context.Context) ([]byte, error) + func (c *Client) GetCallOpts() *bind.CallOpts + func (c *Client) GetChainID(ctx context.Context) (*big.Int, error) + func (c *Client) GetClientVersion(ctx context.Context) ([]byte, error) + func (c *Client) GetCode(ctx context.Context, addr string) ([]byte, error) + func (c *Client) GetCompatibleVersion() int + func (c *Client) GetConsensusStatus(ctx context.Context) ([]byte, error) + func (c *Client) GetContractAddress(ctx context.Context, txhash string) (common.Address, error) + func (c *Client) GetGroupID() *big.Int + func (c *Client) GetGroupList(ctx context.Context) ([]byte, error) + func (c *Client) GetGroupPeers(ctx context.Context) ([]byte, error) + func (c *Client) GetNodeIDList(ctx context.Context) ([]byte, error) + func (c *Client) GetObserverList(ctx context.Context) ([]byte, error) + func (c *Client) GetPBFTView(ctx context.Context) ([]byte, error) + func (c *Client) GetPeers(ctx context.Context) ([]byte, error) + func (c *Client) GetPendingTransactions(ctx context.Context) ([]byte, error) + func (c *Client) GetPendingTxSize(ctx context.Context) ([]byte, error) + func (c *Client) GetSealerList(ctx context.Context) ([]byte, error) + func (c *Client) GetSyncStatus(ctx context.Context) ([]byte, error) + func (c *Client) GetSystemConfigByKey(ctx context.Context, configKey string) ([]byte, error) + func (c *Client) GetTotalTransactionCount(ctx context.Context) ([]byte, error) + func (c *Client) GetTransactOpts() *bind.TransactOpts + func (c *Client) GetTransactionByBlockHashAndIndex(ctx context.Context, bhash string, txindex string) ([]byte, error) + func (c *Client) GetTransactionByBlockNumberAndIndex(ctx context.Context, bnum string, txindex string) ([]byte, error) + func (c *Client) GetTransactionByHash(ctx context.Context, txhash string) ([]byte, error) + func (c *Client) GetTransactionReceipt(ctx context.Context, txhash string) (*types.Receipt, error) + func (c *Client) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) + func (c *Client) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) + func (c *Client) PublishPrivateTopic(topic string, publicKey []*ecdsa.PublicKey) error + func (c *Client) SMCrypto() bool + func (c *Client) SendAMOPMsg(topic string, data []byte) ([]byte, error) + func (c *Client) SendAMOPPrivateMsg(topic string, data []byte) ([]byte, error) + func (c *Client) SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) + func (c *Client) SetGroupID(newID int) + func (c *Client) SubscribeBlockNumberNotify(handler func(int64)) error + func (c *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + func (c *Client) SubscribePrivateTopic(topic string, privateKey *ecdsa.PrivateKey, handler func([]byte, *[]byte)) error + func (c *Client) SubscribeTopic(topic string, handler func([]byte, *[]byte)) error + func (c *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + func (c *Client) UnsubscribeBlockNumberNotify() error + func (c *Client) UnsubscribePrivateTopic(topic string) error + func (c *Client) UnsubscribeTopic(topic string) error + func (c *Client) WaitMined(tx *types.Transaction) (*types.Receipt, error)