Wallet - project-sapphire/prism GitHub Wiki

This page describes what messages wallet modules must support. Wallet modules have a REP socket for communication. All requests to a wallet must label the currency (allowing for multi-currency wallets).

The first frame of the request specifies the operation. Wallets have the right to deny PAY requests for any reason.

Supported requests

balance

req:

  1. "balance"
  2. currency code

reply:

  1. value of balance

pay

req:

  1. "pay"
  2. currency code
  3. amount
  4. address

reply:

  1. status (ok || error (eg no funds available))

receive

req:

  1. "receive"
  2. currency code

reply:

  1. address (string)

history

reserved replies with requested transaction history