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§
Enums§
- Client
Request - A request from a client application to the host.
- Contract
Error - Errors that may happen while interacting with contracts.
- Contract
Request - Contract
Response - Delegate
Error - Errors that may happen while interacting with delegates.
- Delegate
Request - Error
- Error
Kind - Host
Response - A response to a previous
ClientRequest
- Node
Query - Query
Response - Request
Error - WsApi
Error