Difference between revisions of "Outputs (Voting Pool Wallet API)"
Jump to navigation
Jump to search
m (→Schema: fix validation errors) |
(outBailmentID is an object, not a string) |
||
Line 15: | Line 15: | ||
"properties": { | "properties": { | ||
"outBailmentID": { | "outBailmentID": { | ||
− | " | + | "$ref": "https://raw.githubusercontent.com/Open-Transactions/rfc/draft/json/schema/outbailmentid-01.json", |
"description": "the identifier of the originating nym's outBailment message" | "description": "the identifier of the originating nym's outBailment message" | ||
}, | }, | ||
Line 36: | Line 36: | ||
</pre></code> | </pre></code> | ||
+ | ==Canonical Location== | ||
+ | |||
+ | https://github.com/Open-Transactions/rfc/blob/draft/json/schema/outputlist-01.json | ||
[[Category:Voting Pool Technical Specifications]] | [[Category:Voting Pool Technical Specifications]] |
Revision as of 15:05, 26 September 2014
The startwithdrawal API call accepts a list of outputs to be created since voting pools process withdrawals in batches.
The list is formated as a JSON object.
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Output list",
"description": "A list of outputs to be created from a round of voting pool outBailment consensus",
"type": "array",
"items": {
"type": "object",
"properties": {
"outBailmentID": {
"$ref": "https://raw.githubusercontent.com/Open-Transactions/rfc/draft/json/schema/outbailmentid-01.json",
"description": "the identifier of the originating nym's outBailment message"
},
"address": {
"type": "string",
"description": "the destination address for the outBailment"
},
"amount": {
"type": "number",
"description": "the monetary value of the outBailment, in fundamental units (satoshis for Bitcoin)",
"minimum": 0,
"exclusiveMinimum": true
}
},
"required": [ "outBailmentID","address","amount" ]
},
"minItems": 1,
"uniqueItems": true
}
Canonical Location
https://github.com/Open-Transactions/rfc/blob/draft/json/schema/outputlist-01.json