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-transaction.json 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "title": "getTransaction",
  4. "description": "getTransaction response",
  5. "link": "gettransaction",
  6. "properties": {
  7. "type": {
  8. "$ref": "transactionType"
  9. },
  10. "specification": {
  11. "description": "A specification that would produce the same outcome as this transaction. *Exception:* For payment transactions, this omits the `destination.amount` field, to prevent misunderstanding. The structure of the specification depends on the value of the `type` field (see [Transaction Types](#transaction-types) for details). *Note:* This is **not** necessarily the same as the original specification."
  12. },
  13. "outcome": {
  14. "$ref": "outcome",
  15. "description": "The outcome of the transaction (what effects it had)."
  16. },
  17. "id": {
  18. "$ref": "transactionHash",
  19. "description": "A hash of the transaction that can be used to identify it."
  20. },
  21. "address": {
  22. "$ref": "address",
  23. "description": "The address of the account that initiated the transaction."
  24. },
  25. "sequence": {
  26. "$ref": "sequence",
  27. "description": "The account sequence number of the transaction for the account that initiated it."
  28. },
  29. "rawTransaction": {
  30. "description": "The raw transaction data as a JSON string. For advanced users only; exercise caution when interpreting this data.",
  31. "type": "string"
  32. }
  33. },
  34. "required": [
  35. "id",
  36. "address",
  37. "sequence",
  38. "type",
  39. "specification",
  40. "outcome"
  41. ],
  42. "additionalProperties": false,
  43. "oneOf": [
  44. {
  45. "properties": {
  46. "type": {
  47. "enum": [
  48. "payment"
  49. ]
  50. },
  51. "specification": {
  52. "$ref": "getPayment"
  53. }
  54. }
  55. },
  56. {
  57. "properties": {
  58. "type": {
  59. "enum": [
  60. "order"
  61. ]
  62. },
  63. "specification": {
  64. "$ref": "order"
  65. }
  66. }
  67. },
  68. {
  69. "properties": {
  70. "type": {
  71. "enum": [
  72. "orderCancellation"
  73. ]
  74. },
  75. "specification": {
  76. "$ref": "orderCancellation"
  77. }
  78. }
  79. },
  80. {
  81. "properties": {
  82. "type": {
  83. "enum": [
  84. "trustline"
  85. ]
  86. },
  87. "specification": {
  88. "$ref": "trustline"
  89. }
  90. }
  91. },
  92. {
  93. "properties": {
  94. "type": {
  95. "enum": [
  96. "settings"
  97. ]
  98. },
  99. "specification": {
  100. "$ref": "getSettings"
  101. }
  102. }
  103. },
  104. {
  105. "properties": {
  106. "type": {
  107. "enum": [
  108. "checkCreate"
  109. ]
  110. },
  111. "specification": {
  112. "$ref": "checkCreate"
  113. }
  114. }
  115. },
  116. {
  117. "properties": {
  118. "type": {
  119. "enum": [
  120. "checkCancel"
  121. ]
  122. },
  123. "specification": {
  124. "$ref": "checkCancel"
  125. }
  126. }
  127. },
  128. {
  129. "properties": {
  130. "type": {
  131. "enum": [
  132. "checkCash"
  133. ]
  134. },
  135. "specification": {
  136. "$ref": "checkCash"
  137. }
  138. }
  139. },
  140. {
  141. "properties": {
  142. "type": {
  143. "enum": [
  144. "escrowCreation"
  145. ]
  146. },
  147. "specification": {
  148. "$ref": "escrowCreation"
  149. }
  150. }
  151. },
  152. {
  153. "properties": {
  154. "type": {
  155. "enum": [
  156. "escrowCancellation"
  157. ]
  158. },
  159. "specification": {
  160. "$ref": "escrowCancellation"
  161. }
  162. }
  163. },
  164. {
  165. "properties": {
  166. "type": {
  167. "enum": [
  168. "escrowExecution"
  169. ]
  170. },
  171. "specification": {
  172. "$ref": "escrowExecution"
  173. }
  174. }
  175. },
  176. {
  177. "properties": {
  178. "type": {
  179. "enum": [
  180. "paymentChannelCreate"
  181. ]
  182. },
  183. "specification": {
  184. "$ref": "paymentChannelCreate"
  185. }
  186. }
  187. },
  188. {
  189. "properties": {
  190. "type": {
  191. "enum": [
  192. "paymentChannelFund"
  193. ]
  194. },
  195. "specification": {
  196. "$ref": "paymentChannelFund"
  197. }
  198. }
  199. },
  200. {
  201. "properties": {
  202. "type": {
  203. "enum": [
  204. "paymentChannelClaim"
  205. ]
  206. },
  207. "specification": {
  208. "$ref": "paymentChannelClaim"
  209. }
  210. }
  211. },
  212. {
  213. "properties": {
  214. "type": {
  215. "enum": [
  216. "depositPreauth"
  217. ]
  218. },
  219. "specification": {
  220. "$ref": "depositPreauth"
  221. }
  222. }
  223. },
  224. {
  225. "properties": {
  226. "type": {
  227. "enum": [
  228. "accountDelete"
  229. ]
  230. },
  231. "specification": {
  232. "$ref": "accountDelete"
  233. }
  234. }
  235. }
  236. ]
  237. }