Module safe_network::client [−][src]
Expand description
The Safe Network Client.
In order to connect to The Safe Network you’ll need to send messages back and forth to network nodes. The Client has everything needed to perform this communication, with APIs to enable working with data.
With these APIs you can easily:
- Connect to The Safe Network
- Read Public data from the network
- Write data to the network (assuming you have a SafeCoin balance)
Basic Usage
Setting up a random client for read only access:
Examples
TODO: update once data types are crdt compliant
Re-exports
pub use client_api::Client;
Modules
Client trait and related constants.
Utility functions.
Structs
Configuration for sn_client.
QuicP2p configurations
Enums
Client Errors
Errors that can occur when interactive with client messaging APIs.
Constants
Default amount of time to wait (to keep the client alive) after sending a command. This allows AE messages to be parsed/resent. Larger PUT operations may need larger ae wait time
Default amount of time to wait for responses to queries before giving up and returning an error.
Type Definitions
Register Write Ahead Log
Specialisation of std::Result
for Client.