This repository was archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpecification.json
More file actions
1117 lines (1117 loc) · 38.5 KB
/
Specification.json
File metadata and controls
1117 lines (1117 loc) · 38.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"info": {
"version": "0.8.0",
"title": "Sawtooth REST API",
"description": "_This HTTP pragmatic REST API is built on top of Sawtooth's\nexisting ZMQ/Protobuf infrastructure, simplifying client\ninteraction with the blockchain by exposing endpoints that\nuse common HTTP/JSON standards._\n"
},
"host": "46.17.108.38:8008",
"paths": {
"/batches": {
"post": {
"summary": "Sends a BatchList to the validator",
"description": "Accepts a protobuf formatted `BatchList` as an octet-stream binary\nfile and submits it to the validator to be committed.\nThe API will return immediately with a status of `202`. There will be\nno `data` object, only a `link` to a `/batch_statuses` endpoint to be\npolled to check the status of submitted batches.\n",
"consumes": [
"application/octet-stream"
],
"parameters": [
{
"name": "BatchList",
"in": "body",
"description": "A binary encoded protobuf BatchList",
"schema": {
"$ref": "#/definitions/BatchList"
},
"required": true
}
],
"responses": {
"202": {
"description": "Batches submitted for validation, but not yet committed",
"schema": {
"properties": {
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"429": {
"$ref": "#/responses/429TooManyRequests"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
},
"get": {
"summary": "Fetches a list of batches",
"description": "Fetches a paginated list of batches from the validator.\n",
"parameters": [
{
"$ref": "#/parameters/head"
},
{
"$ref": "#/parameters/start"
},
{
"$ref": "#/parameters/limit"
},
{
"$ref": "#/parameters/reverse"
}
],
"responses": {
"200": {
"description": "Successfully retrieved batches",
"schema": {
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/Batch"
}
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
},
"paging": {
"$ref": "#/definitions/Paging"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/batches/{batch_id}": {
"parameters": [
{
"$ref": "#/parameters/batch_id"
}
],
"get": {
"summary": "Fetches a particular batch",
"responses": {
"200": {
"description": "Successfully retrieved batch",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/Batch"
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"404": {
"$ref": "#/responses/404NotFound"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/batch_statuses": {
"get": {
"summary": "Fetches the committed statuses for a set of batches",
"description": "Fetches an array of objects with a status and id for each batch\nrequested. There are four possible statuses with string values\n`'COMMITTED'`, `'INVALID'`, `'PENDING'`, and `'UNKNOWN'`.\nThe batch(es) you want to check can be specified using the `id` filter\nparameter. If a `wait` time is specified in the URL, the API will wait\nto respond until all batches are committed, or the time in seconds has\nelapsed. If the value of `wait` is not set (i.e., `?wait&id=...`), or\nit is set to any non-integer value other than `false`, the wait time\nwill be just under the API's specified timeout (usually 300).\nNote that because this route does not return full resources, the\nresponse will not be paginated, and there will be no `head` or\n`paging` properties.\n",
"parameters": [
{
"name": "id",
"in": "query",
"description": "A comma-separated list of batch ids",
"type": "string",
"required": true
},
{
"$ref": "#/parameters/wait"
}
],
"responses": {
"200": {
"description": "Successfully retrieved statuses",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/BatchStatuses"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
},
"post": {
"summary": "Fetches the committed statuses for a set of batches",
"description": "Identical to `GET /batch_statuses`, but takes ids of batches as a JSON\nformatted POST body rather than a query parameter. This allows for many\nmore batches to be checked and should be used for more than 15 ids.\nNote that because query information is not encoded in the URL, no `link`\nwill be returned with this query.\n",
"consumes": [
"application/json"
],
"parameters": [
{
"name": "Batch Ids",
"in": "body",
"description": "A JSON array of batch id strings",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "string",
"example": "89807bfc9089e37e00d87d97357de14cfbc455cd608438d426a625a30a0da9a31c406983803c4aa27e1f32a3ff61709e8ec4b56abbc553d7d330635b5d27029c"
}
}
},
{
"$ref": "#/parameters/wait"
}
],
"responses": {
"200": {
"description": "Successfully retrieved statuses",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/BatchStatuses"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/state": {
"get": {
"summary": "Fetches the data for the current state",
"description": "Fetches a paginated list of entries for the current state, or relative to a particular head block. Using the `address` filter parameter will narrow the list to any entries that have an address beginning with the characters specified. Note that the partial address in `address` parameter should have even number of hexadecimal characters (i.e., complete bytes).\n",
"parameters": [
{
"$ref": "#/parameters/head"
},
{
"name": "address",
"in": "query",
"type": "string",
"description": "A partial address to filter leaves by"
},
{
"$ref": "#/parameters/start"
},
{
"$ref": "#/parameters/limit"
},
{
"$ref": "#/parameters/reverse"
}
],
"responses": {
"200": {
"description": "Successfully retrieved state data",
"schema": {
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/Entry"
}
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
},
"paging": {
"$ref": "#/definitions/Paging"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/state/{address}": {
"parameters": [
{
"$ref": "#/parameters/address"
}
],
"get": {
"summary": "Fetches a particular leaf from the current state",
"description": "Takes full 70-character address and fetches a particular leaf. For partial address (i.e., group of leaves) use `/state` above.\n",
"parameters": [
{
"$ref": "#/parameters/head"
}
],
"responses": {
"200": {
"description": "Successfully fetched leaves",
"schema": {
"properties": {
"data": {
"type": "string",
"format": "byte",
"example": "Zm9vOmJhcg=="
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"404": {
"$ref": "#/responses/404NotFound"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/blocks": {
"get": {
"summary": "Fetches a list of blocks",
"description": "Fetches a paginated list of blocks from the validator.\n",
"parameters": [
{
"$ref": "#/parameters/head"
},
{
"$ref": "#/parameters/start"
},
{
"$ref": "#/parameters/limit"
},
{
"$ref": "#/parameters/reverse"
}
],
"responses": {
"200": {
"description": "Successfully retrieved blocks",
"schema": {
"properties": {
"data": {
"type": "array",
"items": [
{
"$ref": "#/definitions/Block"
}
]
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
},
"paging": {
"$ref": "#/definitions/Paging"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/blocks/{block_id}": {
"parameters": [
{
"$ref": "#/parameters/block_id"
}
],
"get": {
"summary": "Fetches a particular block",
"responses": {
"200": {
"description": "Successfully retrieved block",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/Block"
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"404": {
"$ref": "#/responses/404NotFound"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/transactions": {
"get": {
"summary": "Fetches a list of transactions",
"description": "Fetches a paginated list of transactions from the validator.\n",
"parameters": [
{
"$ref": "#/parameters/head"
},
{
"$ref": "#/parameters/start"
},
{
"$ref": "#/parameters/limit"
},
{
"$ref": "#/parameters/reverse"
}
],
"responses": {
"200": {
"description": "Successfully retrieved transactions",
"schema": {
"properties": {
"data": {
"type": "array",
"items": [
{
"$ref": "#/definitions/Transaction"
}
]
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
},
"paging": {
"$ref": "#/definitions/Paging"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/transactions/{transaction_id}": {
"parameters": [
{
"$ref": "#/parameters/transaction_id"
}
],
"get": {
"summary": "Fetches a particular transaction",
"responses": {
"200": {
"description": "Successfully retrieved transaction",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/Block"
},
"head": {
"$ref": "#/definitions/Head"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"404": {
"$ref": "#/responses/404NotFound"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/receipts": {
"get": {
"summary": "Fetches the receipts for a set of transactions",
"description": "Fetches an array of objects for each receipt requested.\nThe receipt(s) you want to retrieve can be specified using the `id`\nfilter parameter, where `id` refers to the transaction id of the\ntransaction the receipt is associated with.\n",
"parameters": [
{
"name": "id",
"in": "query",
"description": "A comma-separated list of transaction ids",
"type": "string",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieved transaction receipts",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/TransactionReceipts"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
},
"post": {
"summary": "Fetches the receipts for a set of transactions",
"description": "Identical to `GET /receipts`, but takes ids of transactions as a JSON\nformatted POST body rather than a query parameter. This allows for many\nmore receipts to be fetched and should be used with more than 15 ids.\nNote that because query information is not encoded in the URL, no `link`\nwill be returned with this request.\n",
"consumes": [
"application/json"
],
"parameters": [
{
"name": "Transaction Ids",
"in": "body",
"description": "A JSON array of transaction id strings",
"required": true,
"schema": {
"type": "array",
"items": {
"type": "string",
"example": "89807bfc9089e37e00d87d97357de14cfbc455cd608438d426a625a30a0da9a31c406983803c4aa27e1f32a3ff61709e8ec4b56abbc553d7d330635b5d27029c"
}
}
},
{
"$ref": "#/parameters/wait"
}
],
"responses": {
"200": {
"description": "Successfully retrieved transaction receipts",
"schema": {
"properties": {
"data": {
"$ref": "#/definitions/TransactionReceipts"
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/peers": {
"get": {
"summary": "Fetches the endpoints of the authorized peers of the validator",
"responses": {
"200": {
"description": "Successfully retrieved peers",
"schema": {
"properties": {
"data": {
"type": "array",
"items": {
"type": "string",
"example": "tcp://12.345.67.890:8800"
}
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
},
"/status": {
"get": {
"summary": "Fetches information pertaining to the status of the validator",
"responses": {
"200": {
"description": "Successfully retrieved status",
"schema": {
"properties": {
"data": {
"type": "object",
"properties": {
"endpoint": {
"type": "string",
"example": "tcp://12.345.67.890:8800"
},
"peers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"endpoint": {
"type": "string",
"example": "tcp://12.345.67.890:8800"
}
}
}
}
}
},
"link": {
"$ref": "#/definitions/Link"
}
}
}
},
"400": {
"$ref": "#/responses/400BadRequest"
},
"500": {
"$ref": "#/responses/500ServerError"
},
"503": {
"$ref": "#/responses/503ServiceUnavailable"
}
}
}
}
},
"responses": {
"400BadRequest": {
"description": "Request was malformed",
"schema": {
"$ref": "#/definitions/Error"
}
},
"404NotFound": {
"description": "Address or id did not match any resource",
"schema": {
"$ref": "#/definitions/Error"
}
},
"429TooManyRequests": {
"description": "Too many requests have been made to process batches",
"schema": {
"$ref": "#/definitions/Error"
}
},
"500ServerError": {
"description": "Something went wrong within the validator",
"schema": {
"$ref": "#/definitions/Error"
}
},
"503ServiceUnavailable": {
"description": "API is unable to reach the validator",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"parameters": {
"address": {
"name": "address",
"in": "path",
"type": "string",
"required": true,
"description": "Radix address of a leaf"
},
"block_id": {
"name": "block_id",
"in": "path",
"type": "string",
"required": true,
"description": "Block id"
},
"batch_id": {
"name": "batch_id",
"in": "path",
"type": "string",
"required": true,
"description": "Batch id"
},
"transaction_id": {
"name": "transaction_id",
"in": "path",
"type": "string",
"required": true,
"description": "Transaction id"
},
"head": {
"name": "head",
"in": "query",
"type": "string",
"default": "latest",
"description": "Index or id of head block"
},
"wait": {
"name": "wait",
"in": "query",
"type": "integer",
"description": "A time in seconds to wait for commit"
},
"limit": {
"name": "limit",
"in": "query",
"type": "integer",
"default": 1000,
"description": "Number of items to return"
},
"start": {
"name": "start",
"in": "query",
"type": "string",
"description": "Id to start paging (inclusive)"
},
"reverse": {
"name": "reverse",
"in": "query",
"type": "string",
"description": "If the list should be reversed"
}
},
"definitions": {
"Head": {
"type": "string",
"example": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd"
},
"Link": {
"type": "string",
"example": "https://api.sawtooth.com/state?head=65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd"
},
"Paging": {
"properties": {
"start": {
"type": "string",
"example": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd"
},
"limit": {
"type": "integer",
"example": 54321
},
"next_position": {
"type": "string",
"example": "65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd"
},
"next": {
"type": "string",
"example": "https://api.sawtooth.com/state?head=65cd3a3ce088b265b626f704b7f3db97b6f12e848dccb35d7806f3d0324c71b709ed360d602b8b658b94695374717e3bdb4b76f77886953777d5d008558247dd&start=2000&limit=1000"
}
}
},
"Error": {
"properties": {
"code": {
"type": "integer",
"example": 34
},
"title": {
"type": "string",
"example": "No Batches Submitted"
},
"message": {
"type": "string",
"example": "The protobuf BatchList you submitted was empty and contained no Batches. You must submit at least one Batch.\n"
}
}
},
"BatchStatuses": {
"type": "array",
"items": {
"properties": {
"id": {
"type": "string",
"example": "89807bfc9089e37e00d87d97357de14cfbc455cd608438d426a625a30a0da9a31c406983803c4aa27e1f32a3ff61709e8ec4b56abbc553d7d330635b5d27029c"
},
"status": {
"type": "string",
"example": "INVALID",
"enum": [
"COMMITTED",
"INVALID",
"PENDING",
"UNKNOWN"
]
},
"invalid_transactions": {
"type": "array",
"items": {
"properties": {
"id": {
"type": "string",
"example": "540a6803971d1880ec73a96cb97815a95d374cbad5d865925e5aa0432fcf1931539afe10310c122c5eaae15df61236079abbf4f258889359c4d175516934484a"
},
"message": {
"type": "string",
"example": "Verb is \\\"inc\\\" but name \\\"foo\\\" not in state"
},
"extended_data": {
"type": "string",
"format": "byte",
"example": "ZXJyb3IgZGF0YQ=="
}
}
}
}
}
}
},
"Entry": {
"properties": {
"address": {
"type": "string",
"example": "1cf12650d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c"
},
"data": {
"type": "string",
"format": "byte",
"example": "Zm9vOmJhcg=="
}
}
},
"TransactionHeader": {
"properties": {
"batcher_public_key": {
"type": "string",
"example": "02d260a46457a064733153e09840c322bee1dff34445d7d49e19e60abd18fd0758"
},
"dependencies": {
"type": "array",
"items": {
"type": "string",
"example": "1baee350bdb60bcee60e3d325d43283cf830b4c23b2cb17d3bb43935bd7af3761c2bee79847c72a9e396a9ae58f48add4e43f94eb83f84442c6085c1dd5d4dbe"
}
},
"family_name": {
"type": "string",
"example": "intkey"
},
"family_version": {
"type": "string",
"example": "1.0"
},
"inputs": {
"type": "array",
"items": {
"type": "string",
"example": "1cf12650d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c"
}
},
"nonce": {
"type": "string",
"example": "QAApS4L"
},
"outputs": {
"type": "array",
"items": {
"type": "string",
"example": "1cf12650d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c"
}
},
"payload_sha512": {
"type": "string",
"example": "fb6135ef73f4fe77367f9384b3bbbb158f4b8603c9d612157108e5c271868fce2242ee4abd7a29397ba63780c3ccab13783dfd4d9f0167beda03cdb0e37b87f4"
},
"signer_public_key": {
"type": "string",
"example": "038bba5708acc262464c9fe30d3de9e905a9a5fa30cedd151dd9cd09ea26d46d00"
}
}
},
"Transaction": {
"properties": {
"header": {
"$ref": "#/definitions/TransactionHeader"
},
"header_signature": {
"type": "string",
"example": "540a6803971d1880ec73a96cb97815a95d374cbad5d865925e5aa0432fcf1931539afe10310c122c5eaae15df61236079abbf4f258889359c4d175516934484a"
},
"payload": {
"type": "string",
"format": "binary"
}
}
},
"TransactionReceipt": {
"properties": {
"transaction_id": {
"type": "string",
"example": "540a6803971d1880ec73a96cb97815a95d374cbad5d865925e5aa0432fcf1931539afe10310c122c5eaae15df61236079abbf4f258889359c4d175516934484a"
},
"state_changes": {
"type": "array",
"items": {
"properties": {
"type": {
"type": "string",
"example": "SET"
},
"address": {
"type": "string",
"example": "1cf12650d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c"
},
"value": {
"type": "string",
"format": "binary"
}
}
}
},
"events": {
"type": "array",
"items": {
"properties": {
"event_type": {
"type": "string",
"example": "sawtooth/block-commit"
},
"attributes": {
"type": "array",
"items": {
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}