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.
  • 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.
  • File APIs.
  • 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. This marks the spent DBC as spent in the Network