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:
- "balance"
- currency code
reply:
- value of balance
pay
req:
- "pay"
- currency code
- amount
- address
reply:
- status (ok || error (eg no funds available))
receive
req:
- "receive"
- currency code
reply:
- address (string)
history
reserved replies with requested transaction history