You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prepare.json 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "prepare",
  4. "description": "Result of prepare function",
  5. "type": "object",
  6. "properties": {
  7. "txJSON": {
  8. "type": "string",
  9. "description": "The prepared transaction in rippled JSON format."
  10. },
  11. "instructions": {
  12. "description": "The instructions for how to execute the transaction after adding automatic defaults.",
  13. "type": "object",
  14. "properties": {
  15. "fee": {
  16. "$ref": "value",
  17. "description": "The fee to pay for the transaction. See [Transaction Fees](#transaction-fees) for more information. For multi-signed transactions, this fee is multiplied by (N+1), where N is the number of signatures you plan to provide."
  18. },
  19. "sequence": {
  20. "$ref": "sequence",
  21. "description": "The initiating account's sequence number for this transaction. `sequence` and `ticketSequence` are mutually exclusive, only one of them can be set."
  22. },
  23. "ticketSequence": {
  24. "$ref": "ticket-sequence",
  25. "description": "The initiating account's ticket sequence number for this transaction. `sequence` and `ticketSequence` are mutually exclusive, only one of them can be set."
  26. },
  27. "maxLedgerVersion": {
  28. "oneOf": [
  29. {"$ref": "ledgerVersion"},
  30. {"type": "null"}
  31. ],
  32. "description": "The highest ledger version that the transaction can be included in. Set to `null` if there is no maximum. If not null, this must be an integer greater than 0, or one of the following strings: 'validated', 'closed', 'current'."
  33. }
  34. },
  35. "additionalProperties": false,
  36. "required": ["fee", "maxLedgerVersion"],
  37. "anyOf": [
  38. { "required":
  39. [ "sequence" ] },
  40. { "required":
  41. [ "ticketSequence" ] }
  42. ]
  43. }
  44. },
  45. "additionalProperties": false,
  46. "required": ["txJSON", "instructions"]
  47. }