Module client_api

Source
Expand description

A node client API. Intended to be used from applications (web or otherwise) using the node capabilities to execute contract, delegate, etc. instructions and communicating over the network.

Communication, independent of the transport, revolves around the ClientRequest and HostResponse types.

Currently the clients available are:

  • websocket:
    • regular (native): Using TCP transport directly, for native applications programmed in Rust.
    • browser (wasm): Via wasm-bindgen (and by extension web-sys). (In order to use this client from JS/Typescript refer to the Typescript std lib).

Structs§

ClientError
ConnectedPeers
NetworkDebugInfo
SubscriptionInfo

Enums§

ClientRequest
A request from a client application to the host.
ContractError
Errors that may happen while interacting with contracts.
ContractRequest
ContractResponse
DelegateError
Errors that may happen while interacting with delegates.
DelegateRequest
Error
ErrorKind
HostResponse
A response to a previous ClientRequest
NodeQuery
QueryResponse
RequestError
WsApiError

Traits§

TryFromFbs