Documentation
¶
Index ¶
- Constants
- func BroadcastTx(client RPCClient, tx txs.Tx) (*txs.Receipt, error)
- func Call(client RPCClient, fromAddress, toAddress acm.Address, data []byte) (*rpc.ResultCall, error)
- func CallCode(client RPCClient, fromAddress acm.Address, code, data []byte) (*rpc.ResultCall, error)
- func ChainId(client RPCClient) (*rpc.ResultChainId, error)
- func DumpConsensusState(client RPCClient) (*rpc.ResultDumpConsensusState, error)
- func DumpStorage(client RPCClient, address acm.Address) (*rpc.ResultDumpStorage, error)
- func EventResponseID(eventID string) string
- func GenPrivAccount(client RPCClient) (*rpc.ResultGeneratePrivateAccount, error)
- func GetAccount(client RPCClient, address acm.Address) (acm.Account, error)
- func GetBlock(client RPCClient, height int) (*rpc.ResultGetBlock, error)
- func GetName(client RPCClient, name string) (*execution.NameRegEntry, error)
- func GetStorage(client RPCClient, address acm.Address, key []byte) ([]byte, error)
- func ListBlocks(client RPCClient, minHeight, maxHeight int) (*rpc.ResultListBlocks, error)
- func ListUnconfirmedTxs(client RPCClient, maxTxs int) (*rpc.ResultListUnconfirmedTxs, error)
- func ListValidators(client RPCClient) (*rpc.ResultListValidators, error)
- func SignTx(client RPCClient, tx txs.Tx, privAccounts []*acm.ConcretePrivateAccount) (txs.Tx, error)
- func Status(client RPCClient) (*rpc.ResultStatus, error)
- func Subscribe(wsc WebsocketClient, eventID string) error
- func Unsubscribe(websocketClient WebsocketClient, subscriptionID string) error
- type RPCClient
- type WebsocketClient
Constants ¶
View Source
const SubscribeRequestID = "Subscribe"
View Source
const UnsubscribeRequestID = "Unsubscribe"
Variables ¶
This section is empty.
Functions ¶
func DumpConsensusState ¶
func DumpConsensusState(client RPCClient) (*rpc.ResultDumpConsensusState, error)
func DumpStorage ¶
func EventResponseID ¶
func GenPrivAccount ¶
func GenPrivAccount(client RPCClient) (*rpc.ResultGeneratePrivateAccount, error)
func GetStorage ¶
func ListBlocks ¶
func ListBlocks(client RPCClient, minHeight, maxHeight int) (*rpc.ResultListBlocks, error)
func ListUnconfirmedTxs ¶
func ListUnconfirmedTxs(client RPCClient, maxTxs int) (*rpc.ResultListUnconfirmedTxs, error)
func ListValidators ¶
func ListValidators(client RPCClient) (*rpc.ResultListValidators, error)
func Subscribe ¶
func Subscribe(wsc WebsocketClient, eventID string) error
func Unsubscribe ¶
func Unsubscribe(websocketClient WebsocketClient, subscriptionID string) error
Types ¶
type WebsocketClient ¶
Click to show internal directories.
Click to hide internal directories.