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.

get-transactions.json 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "getTransactionsParameters",
  4. "description": "Parameters for getTransactions",
  5. "type": "object",
  6. "properties": {
  7. "address": {
  8. "$ref": "address",
  9. "description": "The address of the account to get transactions for."
  10. },
  11. "options": {
  12. "description": "Options to filter the resulting transactions.",
  13. "properties": {
  14. "start": {
  15. "$ref": "hash256",
  16. "description": "If specified, start the results from this transaction. You cannot use `start` with `minLedgerVersion` or `maxLedgerVersion`. When `start` is specified, these ledger versions are determined internally."
  17. },
  18. "limit": {
  19. "type": "integer",
  20. "minimum": 1,
  21. "description": "If specified, return at most this many transactions."
  22. },
  23. "minLedgerVersion": {
  24. "$ref": "ledgerVersion",
  25. "description": "Return only transactions in this ledger version or higher."
  26. },
  27. "maxLedgerVersion": {
  28. "$ref": "ledgerVersion",
  29. "description": "Return only transactions in this ledger version or lower."
  30. },
  31. "earliestFirst": {
  32. "type": "boolean",
  33. "description": "If true, sort transactions so that the earliest ones come first. By default, the newest transactions come first."
  34. },
  35. "excludeFailures": {
  36. "type": "boolean",
  37. "description": "If true, the result omits transactions that did not succeed."
  38. },
  39. "initiated": {
  40. "type": "boolean",
  41. "description": "If true, return only transactions initiated by the account specified by `address`. If false, return only transactions not initiated by the account specified by `address`."
  42. },
  43. "counterparty": {
  44. "$ref": "address",
  45. "description": "If provided, only return transactions with this account as a counterparty to the transaction."
  46. },
  47. "types": {
  48. "type": "array",
  49. "items": {"$ref": "transactionType"},
  50. "description": "Only return transactions of the specified [Transaction Types](#transaction-types)."
  51. },
  52. "includeRawTransactions": {
  53. "description": "Include raw transaction data. For advanced users; exercise caution when interpreting this data. "
  54. },
  55. "binary": {
  56. "type": "boolean",
  57. "description": "If true, return transactions in binary format rather than JSON."
  58. }
  59. },
  60. "additionalProperties": false,
  61. "not": {
  62. "anyOf": [
  63. {"required": ["start", "minLedgerVersion"]},
  64. {"required": ["start", "maxLedgerVersion"]}
  65. ]
  66. }
  67. }
  68. },
  69. "additionalProperties": false,
  70. "required": ["address"]
  71. }