UNPKG

ripple-rest-dinex

Version:

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

29 lines (28 loc) 1.04 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Amount", "description": "An Amount on the Ripple Protocol, used also for XRP in the ripple-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 Ripple account address of the currency's issuer or gateway, or an empty string if the currency is XRP", "type": "string", "pattern": "^$|^r[1-9A-HJ-NP-Za-km-z]{25,33}$" }, "counterparty": { "description": "The Ripple account address of the currency's issuer or gateway, or an empty string if the currency is XRP", "type": "string", "pattern": "^$|^r[1-9A-HJ-NP-Za-km-z]{25,33}$" } }, "required": ["value", "currency"] }