Repository navigation
Expand file tree
/
Copy patharc.yaml
More file actions
1136 lines (1081 loc) · 35.8 KB
/
Copy patharc.yaml
File metadata and controls
1136 lines (1081 loc) · 35.8 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
openapi: 3.0.0
info:
title: ARC - Authoritative Response Component
version: 1.0.0
license:
name: Open BSV Licence
url: https://bitcoinassociation.net/open-bsv-license/
servers:
- url: https://arc.taal.com
paths:
# Get Policy
/v1/policy:
get:
operationId: GET policy
tags:
- Arc
summary: Get the policy settings
description: >-
This endpoint returns the policy settings.
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyResponse'
401:
$ref: '#/components/responses/NotAuthorized'
# Get Health
/v1/health:
get:
operationId: GET health
tags:
- Arc
summary: Get metamorph health
description: >-
Checks if metamorph is healthy and running
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Health'
401:
$ref: '#/components/responses/NotAuthorized'
# Get transaction status
/v1/tx/{txid}:
get:
operationId: GET transaction status
tags:
- Arc
summary: Get transaction status.
description: >-
This endpoint is used to get the current status of a previously submitted transaction.
parameters:
- name: txid
in: path
description: The transaction ID (32 byte hash) hex string
required: true
schema:
type: string
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionStatus'
401:
$ref: '#/components/responses/NotAuthorized'
404:
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorNotFound'
409:
description: Generic error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorGeneric'
# Post transaction
/v1/tx:
post:
operationId: POST transaction
tags:
- Arc
summary: Submit a transaction.
description: >-
This endpoint is used to send a raw transaction to a miner for inclusion in the next block that the miner creates.
parameters:
- $ref: '#/components/parameters/callbackUrl'
- $ref: '#/components/parameters/fullStatusUpdates'
- $ref: '#/components/parameters/maxTimeout'
- $ref: '#/components/parameters/skipFeeValidation'
- $ref: '#/components/parameters/forceValidation'
- $ref: '#/components/parameters/skipScriptValidation'
- $ref: '#/components/parameters/skipTxValidation'
- $ref: '#/components/parameters/cumulativeFeeValidation'
- $ref: '#/components/parameters/callbackToken'
- $ref: '#/components/parameters/callbackBatch'
- $ref: '#/components/parameters/waitFor'
requestBody:
required: true
description: 'Transaction hex string'
content:
text/plain:
schema:
type: string
example: "<transaction hex string>"
application/json:
schema:
$ref: '#/components/schemas/TransactionRequest'
application/octet-stream:
schema:
type: string
format: binary
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionResponse'
examples:
mined:
summary: Transaction mined
value:
blockHash: "0000000000000aac89fbed163ed60061ba33bc0ab9de8e7fd8b34ad94c2414cd"
blockHeight: 736228
extraInfo: ""
merklePath: "fe54251800020400028d97f9ebeddd9f9aa8e0e953b3a76f316298ab05e9834aa811716e9d397564e501025f64aa8e012e26a5c5803c9f94d1c2c8ea68ecef1415011e1c2e26b9c966b6ad02021f5fa39607ca3b48d53c902bd5bb4bbf6a7ac99cf9fda45cc21b71e6e2f7889603024a2bb116e86325c9b8512f10b22c228ab3272fe3f373b1bd4a9a6b334b068bb602000061793b278303101a1390ceae5a713de0eabd9cda63702fe84c928970acf7c45e0100a567e3d066e38638b27897559302eabc85eb69b202c2e86d4338bab73008f460"
status: 200
timestamp: "2023-03-09T12:03:48.382910514Z"
title: "OK"
txStatus: "MINED"
txid: "b68b064b336b9a4abdb173f3e32f27b38a222cb2102f51b8c92563e816b12b4a"
mempool:
summary: Transaction in mempool
value:
blockHash: ""
blockHeight: 0
extraInfo: ""
status: 200
timestamp: "2023-03-09T12:03:48.382910514Z"
title: "OK"
txStatus: "SEEN_ON_NETWORK"
txid: "c0d6fce714e4225614f000c6a5addaaa1341acbb9c87115114dcf84f37b945a6"
merklePath: ""
error:
summary: Invalid outputs
value:
detail: Transaction is invalid because the outputs are non-existent or invalid
extraInfo: "arc error 463: arc error 463: transaction output 0 satoshis is invalid"
instance: null
status: 463
title: Invalid outputs
txid: "a0d69a2dfad710770ed282cce316c5792f6101a68046a263a17a1ae02676015e"
type: https://bitcoin-sv.github.io/arc/#/errors?id=_463"
400:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorBadRequest'
401:
$ref: '#/components/responses/NotAuthorized'
409:
description: Generic error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorGeneric'
460:
description: Not extended format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorTxFormat'
461:
description: Malformed transaction
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorUnlockingScripts'
462:
description: Invalid inputs
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInputs'
463:
description: Malformed transaction
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMalformed'
464:
description: Invalid outputs
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorOutputs'
465:
description: Fee too low
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorFee'
422:
description: Unprocessable entity - with IETF RFC 7807 Error object
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
467:
description: Mined ancestors not found in BEEF
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMinedAncestorsNotFound'
468:
description: Invalid BUMPs in BEEF
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCalculatingMerkleRoots'
469:
description: Invalid Merkle Roots
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorValidatingMerkleRoots'
473:
description: Cumulative Fee validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCumulativeFees'
/v1/txs:
post:
operationId: POST transactions
tags:
- Arc
summary: Submit multiple transactions.
description: >-
This endpoint is used to send multiple raw transactions to a miner for inclusion in the next block that the miner creates.
parameters:
- $ref: '#/components/parameters/callbackUrl'
- $ref: '#/components/parameters/fullStatusUpdates'
- $ref: '#/components/parameters/maxTimeout'
- $ref: '#/components/parameters/skipFeeValidation'
- $ref: '#/components/parameters/forceValidation'
- $ref: '#/components/parameters/skipScriptValidation'
- $ref: '#/components/parameters/skipTxValidation'
- $ref: '#/components/parameters/cumulativeFeeValidation'
- $ref: '#/components/parameters/callbackToken'
- $ref: '#/components/parameters/callbackBatch'
- $ref: '#/components/parameters/waitFor'
requestBody:
description: ''
content:
text/plain:
schema:
type: string
example: "<transaction hex string>\n<transaction hex string>"
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TransactionRequest'
application/octet-stream:
schema:
type: string
format: binary
responses:
200:
description: Transaction status
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionResponses'
examples:
mined:
summary: Transaction mined
value:
[
{
"blockHash": "0000000000000aac89fbed163ed60061ba33bc0ab9de8e7fd8b34ad94c2414cd",
"blockHeight": 761868,
"extraInfo": "",
"status": 200,
"timestamp": "2023-03-09T12:03:48.382910514Z",
"title": "OK",
"txStatus": "MINED",
"txid": "b68b064b336b9a4abdb173f3e32f27b38a222cb2102f51b8c92563e816b12b4a",
"merklePath": "fe54251800020400028d97f9ebeddd9f9aa8e0e953b3a76f316298ab05e9834aa811716e9d397564e501025f64aa8e012e26a5c5803c9f94d1c2c8ea68ecef1415011e1c2e26b9c966b6ad02021f5fa39607ca3b48d53c902bd5bb4bbf6a7ac99cf9fda45cc21b71e6e2f7889603024a2bb116e86325c9b8512f10b22c228ab3272fe3f373b1bd4a9a6b334b068bb602000061793b278303101a1390ceae5a713de0eabd9cda63702fe84c928970acf7c45e0100a567e3d066e38638b27897559302eabc85eb69b202c2e86d4338bab73008f460"
}
]
added:
summary: Transaction in mempool
value:
[
{
"blockHash": "",
"blockHeight": 0,
"extraInfo": "",
"status": 200,
"timestamp": "2023-03-09T12:03:48.382910514Z",
"title": "OK",
"txStatus": "SEEN_ON_NETWORK",
"txid": "c0d6fce714e4225614f000c6a5addaaa1341acbb9c87115114dcf84f37b945a6",
"merklePath": ""
}
]
error:
summary: "Invalid outputs"
value:
[
{
"detail": "Transaction is invalid because the outputs are non-existent or invalid",
"extraInfo": "arc error 463: arc error 463: transaction output 0 satoshis is invalid",
"instance": null,
"status": 463,
"title": "Invalid outputs",
"txid": "a0d69a2dfad710770ed282cce316c5792f6101a68046a263a17a1ae02676015e",
"type": "https://bitcoin-sv.github.io/arc/#/errors?id=_463"
}
]
400:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorBadRequest'
401:
$ref: '#/components/responses/NotAuthorized'
409:
description: Generic error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorGeneric'
460:
description: Not extended format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorTxFormat'
461:
description: Malformed transaction
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorUnlockingScripts'
462:
description: Invalid inputs
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInputs'
463:
description: Malformed transaction
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMalformed'
464:
description: Invalid outputs
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorOutputs'
465:
description: Fee too low
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorFee'
467:
description: Mined ancestors not found in BEEF
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMinedAncestorsNotFound'
468:
description: Invalid BUMPs in BEEF
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCalculatingMerkleRoots'
469:
description: Invalid Merkle Roots
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorValidatingMerkleRoots'
473:
description: Cumulative Fee too low
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorCumulativeFees'
components:
schemas:
CommonResponse:
type: object
required:
- timestamp
description: Common response object
properties:
timestamp:
type: string
format: date-time
nullable: false
Health:
type: object
description: healthy or not
properties:
healthy:
type: boolean
nullable: false
example: false
description: whether healthy or not
version:
type: string
nullable: false
example: "v1.0.0"
description: version of the ARC package
reason:
type: string
nullable: true
example: "no db connection"
description: explains the problem with metamorph
ChainInfo:
type: object
description: Chain info
properties:
blockHash:
type: string
nullable: false
example: "00000000000000000854749b3c125d52c6943677544c8a6a885247935ba8d17d"
description: Block hash
blockHeight:
type: integer
format: uint64
nullable: false
example: 782318
description: Block height
PolicyResponse:
allOf:
- $ref: '#/components/schemas/CommonResponse'
- type: object
required:
- policy
properties:
policy:
$ref: '#/components/schemas/Policy'
additionalProperties: false
Policy:
type: object
required:
- maxscriptsizepolicy
- maxtxsigopscountspolicy
- maxtxsizepolicy
- miningFee
properties:
maxscriptsizepolicy:
type: integer
format: uint64
nullable: false
description: Maximum script size [bytes]
example: 500000
maxtxsigopscountspolicy:
type: integer
format: uint64
nullable: false
description: Maximum number of signature operations
example: 4294967295
maxtxsizepolicy:
type: integer
format: uint64
nullable: false
description: Maximum transaction size [bytes]
example: 10000000
miningFee:
$ref: '#/components/schemas/FeeAmount'
description: Mining fee
standardFormatSupported:
type: boolean
nullable: false
description: Whether or not the standard format is supported
example: true
additionalProperties: false
FeeAmount:
type: object
required:
- satoshis
- bytes
properties:
satoshis:
type: integer
format: uint64
description: Amount in Satoshis
example: 1
bytes:
type: integer
format: uint64
description: Number of bytes
example: 1000
additionalProperties: false
TransactionRequest:
type: object
required:
- rawTx
properties:
rawTx:
type: string
nullable: false
description: Raw hex string
example: "<transaction hex string>"
TransactionResponse:
allOf:
- $ref: '#/components/schemas/CommonResponse'
- $ref: '#/components/schemas/ChainInfo'
- $ref: '#/components/schemas/TransactionDetails'
- $ref: '#/components/schemas/TransactionSubmitStatus'
TransactionResponses:
type: object
properties:
transactions:
type: array
items:
oneOf:
- $ref: '#/components/schemas/TransactionResponse'
- $ref: '#/components/schemas/Error'
TransactionStatus:
allOf:
- $ref: '#/components/schemas/CommonResponse'
- $ref: '#/components/schemas/ChainInfo'
- $ref: '#/components/schemas/TransactionDetails'
TransactionSubmitStatus:
type: object
required:
- status
- title
description: Transaction submit status
properties:
status:
type: integer
format: int
example: 201
nullable: false
description: Status
title:
type: string
description: Title
example: "Added to mempool"
nullable: false
TransactionDetails:
type: object
description: Transaction details
required:
- txid
- txStatus
properties:
txid:
type: string
description: Transaction ID in hex
example: "6bdbcfab0526d30e8d68279f79dff61fb4026ace8b7b32789af016336e54f2f0"
nullable: false
merklePath:
type: string
nullable: true
description: Transaction Merkle path as a hex string in BUMP format [BRC-74](https://brc.dev/74)
example: "0000"
txStatus:
type: string
enum: [
"UNKNOWN",
"QUEUED",
"RECEIVED",
"STORED",
"ANNOUNCED_TO_NETWORK",
"REQUESTED_BY_NETWORK",
"SENT_TO_NETWORK",
"ACCEPTED_BY_NETWORK",
"SEEN_IN_ORPHAN_MEMPOOL",
"SEEN_ON_NETWORK",
"DOUBLE_SPEND_ATTEMPTED",
"REJECTED",
"MINED_IN_STALE_BLOCK",
"MINED",
]
description: Transaction status
example: "ACCEPTED_BY_NETWORK"
nullable: false
extraInfo:
type: string
description: Extra information about the transaction
example: "Transaction is not valid"
nullable: true
competingTxs:
type: array
nullable: true
items:
type: string
example: ["c0d6fce714e4225614f000c6a5addaaa1341acbb9c87115114dcf84f37b945a6"]
Error:
description: An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
oneOf:
- $ref: '#/components/schemas/ErrorUnlockingScripts'
- $ref: '#/components/schemas/ErrorInputs'
- $ref: '#/components/schemas/ErrorMalformed'
- $ref: '#/components/schemas/ErrorMinedAncestorsNotFound'
- $ref: '#/components/schemas/ErrorCalculatingMerkleRoots'
- $ref: '#/components/schemas/ErrorFrozenPolicy'
- $ref: '#/components/schemas/ErrorFrozenConsensus'
ErrorFields:
type: object
required:
- type
- title
- status
- detail
properties:
type:
type: string
description: Type of error, with link to more information
nullable: false
title:
type: string
description: Descriptive text for error
nullable: false
status:
type: integer
format: int
description: Error code
example: 402
nullable: false
detail:
type: string
description: Longer description of error
example: The fee in the transaction is too low to be included in a block.
nullable: false
instance:
type: string
description: (Optional) Link to actual error on server
nullable: true
txid:
type: string
description: Transaction ID this error is referring to
nullable: true
extraInfo:
type: string
description: Optional extra information about the error from the miner
nullable: true
ErrorBadRequest:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_400"
title:
example: "Bad request"
status:
example: 400
detail:
example: "The request seems to be malformed and cannot be processed"
instance:
example: "https://arc.taal.com/errors/1234556"
ErrorNotFound:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_404"
title:
example: "Not found"
status:
example: 404
detail:
example: "The requested resource could not be found"
instance:
example: "https://arc.taal.com/errors/1234556"
ErrorGeneric:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_409"
title:
example: "Generic error"
status:
example: 409
detail:
example: "Transaction could not be processed"
instance:
example: "https://arc.taal.com/errors/1234556"
ErrorTxFormat :
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_460"
title:
example: "Not extended format"
status:
example: 460
detail:
example: "Missing input scripts: Transaction could not be transformed to extended format"
instance:
example: "https://arc.taal.com/errors/1234556"
ErrorUnlockingScripts:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_461"
title:
example: "Malformed transaction"
status:
example: 461
detail:
example: "Transaction is malformed and cannot be processed"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorInputs:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_462"
title:
example: "Invalid inputs"
status:
example: 462
detail:
example: "Transaction is invalid because the inputs are non-existent or spent"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorMalformed:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_463"
title:
example: "Malformed transaction"
status:
example: 463
detail:
example: "Transaction is malformed and cannot be processed"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorOutputs:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_464"
title:
example: "Invalid outputs"
status:
example: 464
detail:
example: "Transaction is invalid because the outputs are non-existent or invalid"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorFee:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_465"
title:
example: "Fee too low"
status:
example: 465
detail:
example: "The fees are too low"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorConflict:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_466"
title:
example: "Conflicting tx found"
status:
example: 466
detail:
example: "Transaction is valid, but there is a conflicting tx in the block template"
instance:
example: "https://arc.taal.com/errors/123453"
ErrorMinedAncestorsNotFound:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_467"
title:
example: "Mined ancestors not found"
status:
example: 467
detail:
example: "Error validating BEEF: mined ancestors not found in transaction inputs"
instance:
example: "https://arc.taal.com/errors/123453"
ErrorCalculatingMerkleRoots:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_468"
title:
example: "Invalid BUMPs"
status:
example: 468
detail:
example: "Error validating BEEF: could not calculate Merkle Roots from given BUMPs"
instance:
example: "https://arc.taal.com/errors/123453"
ErrorValidatingMerkleRoots:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_469"
title:
example: "Merkle Roots validation failed"
status:
example: 469
detail:
example: "Error validating BEEF: could not validate Merkle Roots"
instance:
example: "https://arc.taal.com/errors/123453"
ErrorFrozenPolicy:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_471"
title:
example: "Input Frozen"
status:
example: 471
detail:
example: "Input Frozen (blacklist manager policy blacklisted)"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorFrozenConsensus:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_472"
title:
example: "Input Frozen"
status:
example: 472
detail:
example: "Input Frozen (blacklist manager consensus blacklisted)"
instance:
example: "https://arc.taal.com/errors/123452"
ErrorCumulativeFees:
allOf:
- "$ref": "#/components/schemas/ErrorFields"
- type: object
properties:
type:
example: "https://bitcoin-sv.github.io/arc/#/errors?id=_473"
title:
example: "Cumulative fee too low"
status:
example: 473
detail:
example: "The cumulative fee is too low"
instance:
example: "https://arc.taal.com/errors/123452"
Callback:
type: object
description: callback object
required:
- timestamp
- txid
- txStatus
properties:
timestamp:
type: string
txid:
type: string
nullable: false
txStatus:
type: string
nullable: false
extraInfo:
type: string
nullable: true
competingTxs:
type: array
items:
type: string
merklePath:
type: string
nullable: true
blockHash:
type: string
nullable: true
blockHeight:
type: integer
nullable: true
examples:
mined:
summary: Transaction mined
value:
timestamp: "2024-03-26T16:02:29.655390092Z"
txid: "48ccf56b16ec11ddd9cfafc4f28492fb7e989d58594a0acd150a1592570ccd13"
txStatus: "MINED"
merklePath: "fe12c70c000c020a008d1c719355d718dad0ccc..."
blockHash: "0000000000000000064cbaac5cedf71a5447771573ba585501952c023873817b"
blockHeight: 837394
seenOnNetwork:
summary: Transaction seen on network
value:
timestamp: "2024-03-26T16:02:29.655390092Z"
txid: "507e8fb791d37c5da9c6f37a66524d6c8237d9e05d55b6cfa2bed74234d68deb"
txStatus: "SEEN_ON_NETWORK"
doubleSpendAttempted:
summary: Transaction with one or more competing transactions
value:
timestamp: "2024-03-26T16:02:29.655390092Z"
competingTxs: [
"505097ba93702491a8a8e5c195a3d2706baf9d43af5e8898aeace0e251f240d2"
]
txid: "3d7770a2c3bbf890fe69ad33faadd3efb470b60d05b071eaa86e6597d480e111"
txStatus: "DOUBLE_SPEND_ATTEMPTED"
BatchedCallbacks:
type: object
description: batched callbacks object