WalletService

WalletService is a wrapper for a private key storage mechanism. Note that plasma-core does not provide a “real” wallet service. plasma-core only provides a mock wallet for testing. To learn more about what is and isn’t included check out Extending plasma-core.


getAccounts

wallet.getAccounts()

Returns any available accounts.

Returns

Promise<Array>: List of addresses in the wallet.


sign

wallet.sign(address, data)

Signs some data with the given address.

Parameters

  1. address - string: Address to sign with.
  2. data - any: Arbitrary data to sign.

Returns

Promise<Object>: A Signature object.