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.

balance.json 994B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "balance",
  4. "description": "Balance amount",
  5. "link": "amount",
  6. "type": "object",
  7. "properties": {
  8. "value": {
  9. "description": "The balance on the trustline",
  10. "$ref": "signedValue"
  11. },
  12. "currency": {
  13. "description": "The three-character code or hexadecimal string used to denote currencies",
  14. "$ref": "currency"
  15. },
  16. "counterparty": {
  17. "description": "The XRP Ledger address of the account that owes or is owed the funds.",
  18. "$ref": "address"
  19. }
  20. },
  21. "additionalProperties": false,
  22. "required": ["currency", "value"],
  23. "oneOf": [
  24. {
  25. "properties": {
  26. "currency": {
  27. "not": {
  28. "enum": ["XRP"]
  29. }
  30. }
  31. },
  32. "required": ["counterparty"]
  33. },
  34. {
  35. "properties": {
  36. "currency": {
  37. "enum": ["XRP"]
  38. }
  39. },
  40. "not": {
  41. "required": ["counterparty"]
  42. }
  43. }
  44. ]
  45. }