load

load(filename)
load({ options.name, options.paths, options.dir })

This function locates and reads a keystore file, and instantiates a Keystore from it.

Arguments
  • filename (string()) – The keystore filename

  • options.name (string()) – The keystore label or filename.

  • options.paths (string[]()) – Override the default keystore directory search path (Node.js Only). This must be a complete pathname.

  • options.dir (string()) – Override paths.

Return type

Promise<LoadResult()>

class LoadResult()

Object returned by wallet.load

Arguments
  • keystore (Keystore()) – the instance of the keystore that was loaded

  • safe (boolean()) – indicates that the keystore was read from a secure location.