UNPKG

divvy-rest

Version:

A RESTful API for submitting payments and monitoring accounts on the Divvy network.

29 lines (28 loc) 1.04 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Amount", "description": "An Amount on the Divvy Protocol, used also for XDV in the divvy-rest API", "type": "object", "properties": { "value": { "description": "The quantity of the currency, denoted as a string to retain floating point precision", "type": "string", "$ref": "FloatString" }, "currency": { "description": "The three-character code or hex string used to denote currencies", "$ref": "Currency" }, "issuer": { "description": "The Divvy account address of the currency's issuer or gateway, or an empty string if the currency is XDV", "type": "string", "pattern": "^$|^r[1-9A-HJ-NP-Za-km-z]{25,33}$" }, "counterparty": { "description": "The Divvy account address of the currency's issuer or gateway, or an empty string if the currency is XDV", "type": "string", "pattern": "^$|^r[1-9A-HJ-NP-Za-km-z]{25,33}$" } }, "required": ["value", "currency"] }