UNPKG

divvy-rest

Version:

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

24 lines (23 loc) 773 B
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Balance", "description": "A simplified representation of an account Balance", "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 currency expressed as a three-character code", "$ref": "Currency" }, "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" ] }