Crate sn_client

source ·

Structs

  • Client API implementation to store and get data.
  • Receiver Channel where users of the public API can listen to events broadcasted by the client.
  • File APIs.
  • Operations made to a Register instance are applied not only locally, but also sent them to the replicas on the network. The user can switch offline-mode by invoking the offline API.
  • Ops made to an offline Register instance are applied locally only, and accumulated till the user explicitly calls ‘sync’. The user can switch back to sync with the network for every op by invoking online API.
  • A wallet client can be used to send and receive tokens to/from other wallets.

Enums

  • Type of events broadcasted by the client to the public API.
  • Internal error.

Functions

  • Returns a dbc with the requested number of tokens, for use by E2E test instances.
  • Use the client to load the faucet wallet from the genesis DBC.
  • Use the client to send a DBC from a local wallet to an address.