 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func BroadcastTx(client RPCClient, txEnv *txs.Envelope) (*txs.Receipt, error)
- func Call(client RPCClient, fromAddress, toAddress crypto.Address, data []byte) (*rpc.ResultCall, error)
- func CallCode(client RPCClient, fromAddress crypto.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 crypto.Address) (*rpc.ResultDumpStorage, error)
- func EventResponseID(eventID string) string
- func GenPrivAccount(client RPCClient) (*rpc.ResultGeneratePrivateAccount, error)
- func GetAccount(client RPCClient, address crypto.Address) (acm.Account, error)
- func GetBlock(client RPCClient, height int) (*rpc.ResultGetBlock, error)
- func GetName(client RPCClient, name string) (*names.Entry, error)
- func GetStorage(client RPCClient, address crypto.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.Envelope, 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 ¶
type WebsocketClient interface {
	Send(ctx context.Context, request types.RPCRequest) error
}
     Click to show internal directories. 
   Click to hide internal directories.