-
Notifications
You must be signed in to change notification settings - Fork 1
/
XCASH-api-tools-go-structures.go
919 lines (831 loc) · 28.7 KB
/
XCASH-api-tools-go-structures.go
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
package xcash
type BlockchainError struct {
Error struct {
Code int `json:"code"`
Message string `json:"message"`
} `json:"error"`
ID int `json:"id"`
Jsonrpc string `json:"jsonrpc"`
}
type BlockchainGetBlockCount struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Count int `json:"count"`
Status string `json:"status"`
} `json:"result"`
}
type BlockchainGetBlockHash struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result string `json:"result"`
}
type BlockchainGetBlockTemplate struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
BlockhashingBlob string `json:"blockhashing_blob"`
BlocktemplateBlob string `json:"blocktemplate_blob"`
Difficulty int `json:"difficulty"`
ExpectedReward int64 `json:"expected_reward"`
Height int `json:"height"`
PrevHash string `json:"prev_hash"`
ReservedOffset int `json:"reserved_offset"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetLastBlockHeader struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
BlockHeader struct {
BlockSize int `json:"block_size"`
BlockWeight int `json:"block_weight"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Depth int `json:"depth"`
Difficulty int `json:"difficulty"`
Hash string `json:"hash"`
Height int `json:"height"`
MajorVersion int `json:"major_version"`
MinorVersion int `json:"minor_version"`
Nonce int `json:"nonce"`
NumTxes int `json:"num_txes"`
OrphanStatus bool `json:"orphan_status"`
PowHash string `json:"pow_hash"`
PrevHash string `json:"prev_hash"`
Reward int64 `json:"reward"`
Timestamp int `json:"timestamp"`
} `json:"block_header"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetBlockHeaderByHash struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
BlockHeader struct {
BlockSize int `json:"block_size"`
BlockWeight int `json:"block_weight"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Depth int `json:"depth"`
Difficulty int `json:"difficulty"`
Hash string `json:"hash"`
Height int `json:"height"`
MajorVersion int `json:"major_version"`
MinorVersion int `json:"minor_version"`
Nonce int `json:"nonce"`
NumTxes int `json:"num_txes"`
OrphanStatus bool `json:"orphan_status"`
PowHash string `json:"pow_hash"`
PrevHash string `json:"prev_hash"`
Reward int64 `json:"reward"`
Timestamp int `json:"timestamp"`
} `json:"block_header"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetBlockHeaderByHeight struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
BlockHeader struct {
BlockSize int `json:"block_size"`
BlockWeight int `json:"block_weight"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Depth int `json:"depth"`
Difficulty int `json:"difficulty"`
Hash string `json:"hash"`
Height int `json:"height"`
MajorVersion int `json:"major_version"`
MinorVersion int `json:"minor_version"`
Nonce int `json:"nonce"`
NumTxes int `json:"num_txes"`
OrphanStatus bool `json:"orphan_status"`
PowHash string `json:"pow_hash"`
PrevHash string `json:"prev_hash"`
Reward int64 `json:"reward"`
Timestamp int `json:"timestamp"`
} `json:"block_header"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetBlockHeadersRange struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Headers []struct {
BlockSize int `json:"block_size"`
BlockWeight int `json:"block_weight"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Depth int `json:"depth"`
Difficulty int `json:"difficulty"`
Hash string `json:"hash"`
Height int `json:"height"`
MajorVersion int `json:"major_version"`
MinorVersion int `json:"minor_version"`
Nonce int `json:"nonce"`
NumTxes int `json:"num_txes"`
OrphanStatus bool `json:"orphan_status"`
PowHash string `json:"pow_hash"`
PrevHash string `json:"prev_hash"`
Reward int64 `json:"reward"`
Timestamp int `json:"timestamp"`
} `json:"headers"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetBlock struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Blob string `json:"blob"`
BlockHeader struct {
BlockSize int `json:"block_size"`
BlockWeight int `json:"block_weight"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
Depth int `json:"depth"`
Difficulty int `json:"difficulty"`
Hash string `json:"hash"`
Height int `json:"height"`
MajorVersion int `json:"major_version"`
MinorVersion int `json:"minor_version"`
Nonce int `json:"nonce"`
NumTxes int `json:"num_txes"`
OrphanStatus bool `json:"orphan_status"`
PowHash string `json:"pow_hash"`
PrevHash string `json:"prev_hash"`
Reward int64 `json:"reward"`
Timestamp int `json:"timestamp"`
} `json:"block_header"`
JSON string `json:"json"`
MinerTxHash string `json:"miner_tx_hash"`
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
} `json:"result"`
}
type BlockchainGetInfo struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
AltBlocksCount int `json:"alt_blocks_count"`
BlockSizeLimit int `json:"block_size_limit"`
BlockSizeMedian int `json:"block_size_median"`
BlockWeightLimit int `json:"block_weight_limit"`
BlockWeightMedian int `json:"block_weight_median"`
BootstrapDaemonAddress string `json:"bootstrap_daemon_address"`
CumulativeDifficulty int64 `json:"cumulative_difficulty"`
DatabaseSize int `json:"database_size"`
Difficulty int `json:"difficulty"`
FreeSpace int64 `json:"free_space"`
GreyPeerlistSize int `json:"grey_peerlist_size"`
Height int `json:"height"`
HeightWithoutBootstrap int `json:"height_without_bootstrap"`
IncomingConnectionsCount int `json:"incoming_connections_count"`
Mainnet bool `json:"mainnet"`
Nettype string `json:"nettype"`
Offline bool `json:"offline"`
OutgoingConnectionsCount int `json:"outgoing_connections_count"`
RPCConnectionsCount int `json:"rpc_connections_count"`
Stagenet bool `json:"stagenet"`
StartTime int `json:"start_time"`
Status string `json:"status"`
Target int `json:"target"`
TargetHeight int `json:"target_height"`
Testnet bool `json:"testnet"`
TopBlockHash string `json:"top_block_hash"`
TxCount int `json:"tx_count"`
TxPoolSize int `json:"tx_pool_size"`
Untrusted bool `json:"untrusted"`
UpdateAvailable bool `json:"update_available"`
WasBootstrapEverUsed bool `json:"was_bootstrap_ever_used"`
WhitePeerlistSize int `json:"white_peerlist_size"`
} `json:"result"`
}
type BlockchainHardForkInfo struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
EarliestHeight int `json:"earliest_height"`
Enabled bool `json:"enabled"`
State int `json:"state"`
Status string `json:"status"`
Threshold int `json:"threshold"`
Untrusted bool `json:"untrusted"`
Version int `json:"version"`
Votes int `json:"votes"`
Voting int `json:"voting"`
Window int `json:"window"`
} `json:"result"`
}
type BlockchainGetVersion struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
Untrusted bool `json:"untrusted"`
Version int `json:"version"`
} `json:"result"`
}
type BlockchainGetTx struct {
Status string `json:"status"`
Txs []struct {
AsHex string `json:"as_hex"`
AsJSON string `json:"as_json"`
BlockHeight int `json:"block_height"`
BlockTimestamp int `json:"block_timestamp"`
DoubleSpendSeen bool `json:"double_spend_seen"`
InPool bool `json:"in_pool"`
OutputIndices []int `json:"output_indices"`
TxHash string `json:"tx_hash"`
} `json:"txs"`
TxsAsHex []string `json:"txs_as_hex"`
TxsAsJSON []string `json:"txs_as_json"`
Untrusted bool `json:"untrusted"`
}
type DPOPSVote struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
VoteStatus string `json:"vote_status"`
} `json:"result"`
}
type DPOPSRevote struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type DPOPSVoteStatus struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type DPOPSDelegateRegister struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
DelegateRegisterStatus string `json:"delegate_register_status"`
} `json:"result"`
}
type DPOPSDelegateUpdate struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
DelegateUpdateStatus string `json:"delegate_update_status"`
} `json:"result"`
}
type BlockchainGetBalance struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Balance int64 `json:"balance"`
MultisigImportNeeded bool `json:"multisig_import_needed"`
PerSubaddress []struct {
Address string `json:"address"`
AddressIndex int `json:"address_index"`
Balance int64 `json:"balance"`
Label string `json:"label"`
NumUnspentOutputs int `json:"num_unspent_outputs"`
UnlockedBalance int64 `json:"unlocked_balance"`
} `json:"per_subaddress"`
UnlockedBalance int64 `json:"unlocked_balance"`
} `json:"result"`
}
type BlockchainGetAddress struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Address string `json:"address"`
Addresses []struct {
Address string `json:"address"`
AddressIndex int `json:"address_index"`
Label string `json:"label"`
Used bool `json:"used"`
} `json:"addresses"`
} `json:"result"`
}
type BlockchainGetAddressIndex struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Index struct {
Major int `json:"major"`
Minor int `json:"minor"`
} `json:"index"`
} `json:"result"`
}
type BlockchainCreateAddress struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Address string `json:"address"`
AddressIndex int `json:"address_index"`
} `json:"result"`
}
type BlockchainGetAccounts struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
SubaddressAccounts []struct {
AccountIndex int `json:"account_index"`
Balance int64 `json:"balance"`
BaseAddress string `json:"base_address"`
Label string `json:"label"`
Tag string `json:"tag"`
UnlockedBalance int64 `json:"unlocked_balance"`
} `json:"subaddress_accounts"`
TotalBalance int64 `json:"total_balance"`
TotalUnlockedBalance int64 `json:"total_unlocked_balance"`
} `json:"result"`
}
type BlockchainCreateAccount struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
AccountIndex int `json:"account_index"`
Address string `json:"address"`
} `json:"result"`
}
type BlockchainGetHeight struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
AmountList []int64 `json:"amount_list"`
FeeList []int `json:"fee_list"`
MultisigTxset string `json:"multisig_txset"`
TxHashList []string `json:"tx_hash_list"`
TxKeyList []string `json:"tx_key_list"`
UnsignedTxset string `json:"unsigned_txset"`
} `json:"result"`
}
type BlockchainTransferSplit struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
AmountList []int64 `json:"amount_list"`
FeeList []int `json:"fee_list"`
MultisigTxset string `json:"multisig_txset"`
TxHashList []string `json:"tx_hash_list"`
TxKeyList []string `json:"tx_key_list"`
UnsignedTxset string `json:"unsigned_txset"`
} `json:"result"`
}
type BlockchainSweepAll struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
AmountList []int64 `json:"amount_list"`
FeeList []int `json:"fee_list"`
MultisigTxset string `json:"multisig_txset"`
TxHashList []string `json:"tx_hash_list"`
TxKeyList []string `json:"tx_key_list"`
UnsignedTxset string `json:"unsigned_txset"`
} `json:"result"`
}
type BlockchainGetPayments struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Payments []struct {
Address string `json:"address"`
Amount int64 `json:"amount"`
BlockHeight int `json:"block_height"`
PaymentID string `json:"payment_id"`
SubaddrIndex struct {
Major int `json:"major"`
Minor int `json:"minor"`
} `json:"subaddr_index"`
} `json:"payments"`
} `json:"result"`
}
type BlockchainIncomingTransfers struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Transfers []struct {
Amount int64 `json:"amount"`
GlobalIndex int `json:"global_index"`
KeyImage string `json:"key_image"`
Spent bool `json:"spent"`
SubaddrIndex struct {
Major int `json:"major"`
Minor int `json:"minor"`
} `json:"subaddr_index"`
TxHash string `json:"tx_hash"`
} `json:"transfers"`
} `json:"result"`
}
type BlockchainQueryKey struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Key string `json:"key"`
} `json:"result"`
}
type BlockchainMakeIntegratedAddress struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
IntegratedAddress string `json:"integrated_address"`
PaymentID string `json:"payment_id"`
} `json:"result"`
}
type BlockchainSplitIntegratedAddress struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
IsSubaddress bool `json:"is_subaddress"`
PaymentID string `json:"payment_id"`
StandardAddress string `json:"standard_address"`
} `json:"result"`
}
type BlockchainRescanBlockchain struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type BlockchainGetTxKey struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
TxKey string `json:"tx_key"`
} `json:"result"`
}
type BlockchainCheckTxKey struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Confirmations int `json:"confirmations"`
InPool bool `json:"in_pool"`
Received int64 `json:"received"`
} `json:"result"`
}
type BlockchainGetTxProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Signature string `json:"signature"`
} `json:"result"`
}
type BlockchainCheckTxProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Confirmations int `json:"confirmations"`
Good bool `json:"good"`
InPool bool `json:"in_pool"`
Received int64 `json:"received"`
} `json:"result"`
}
type BlockchainGetSpendProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Signature string `json:"signature"`
} `json:"result"`
}
type BlockchainCheckSpendProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Good bool `json:"good"`
} `json:"result"`
}
type BlockchainGetReserveProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Signature string `json:"signature"`
} `json:"result"`
}
type BlockchainCheckReserveProof struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Good bool `json:"good"`
Spent int `json:"spent"`
Total int `json:"total"`
} `json:"result"`
}
type BlockchainSign struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Signature string `json:"signature"`
} `json:"result"`
}
type BlockchainVerify struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Good bool `json:"good"`
} `json:"result"`
}
type BlockchainRescanSpent struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type BlockchainValidateAddress struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Valid bool `json:"valid"`
} `json:"result"`
}
type BlockchainCreateWallet struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type BlockchainOpenWallet struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type BlockchainCloseWallet struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type BlockchainChangeWalletPassword struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
} `json:"result"`
}
type NamespaceUpdateRemoteData struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type NamespaceRemoteDataSaveName struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type NamespaceRemoteDataPurchaseName struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type NamespaceRemoteDataDelegateSetAmount struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type NamespaceRemoteDataRenewalStart struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type NamespaceRemoteDataRenewalEnd struct {
ID string `json:"id"`
Jsonrpc string `json:"jsonrpc"`
Result struct {
Status string `json:"status"`
} `json:"result"`
}
type APIBlockchainStats struct {
Height int `json:"height"`
Hash string `json:"hash"`
Reward int64 `json:"reward"`
Size int64 `json:"size"`
Version int `json:"version"`
VersionBlockHeight int `json:"versionBlockHeight"`
NextVersionBlockHeight int `json:"nextVersionBlockHeight"`
TotalPublicTx int `json:"totalPublicTx"`
TotalPrivateTx int `json:"totalPrivateTx"`
CirculatingSupply int64 `json:"circulatingSupply"`
GeneratedSupply int64 `json:"generatedSupply"`
TotalSupply int64 `json:"totalSupply"`
EmissionReward int64 `json:"emissionReward"`
EmissionHeight int `json:"emissionHeight"`
EmissionTime int `json:"emissionTime"`
InflationHeight int `json:"inflationHeight"`
InflationTime int `json:"inflationTime"`
}
type APIBlockchainBlockData struct {
Height int `json:"height"`
Hash string `json:"hash"`
Reward int64 `json:"reward"`
Time int `json:"time"`
XcashDPOPS bool `json:"xcashDPOPS"`
DelegateName string `json:"delegateName"`
Tx []string `json:"tx"`
}
type APIBlockchainTxData struct {
Height int `json:"height"`
Confirmations int `json:"confirmations"`
Time int `json:"time"`
Type string `json:"type"`
Sender string `json:"sender"`
Receiver string `json:"receiver"`
Amount int64 `json:"amount"`
}
type APIBlockchainProveTx struct {
Valid bool `json:"valid"`
Amount int64 `json:"amount"`
}
type APIBlockchainProveBalance struct {
Amount int64 `json:"amount"`
}
type APIBlockchainTxHistory []struct {
Tx string `json:"tx"`
Key string `json:"key"`
Sender string `json:"sender"`
Receiver string `json:"receiver"`
Amount int `json:"amount"`
Height int `json:"height"`
Time int `json:"time"`
}
type APIBlockchainValidateAddress struct {
Valid bool `json:"valid"`
}
type APIBlockchainCreateIntegratedAddress struct {
IntegratedAddress string `json:"integratedAddress"`
PaymentID string `json:"paymentId"`
}
// XCASH DPOPS
type APIDPOPSStats struct {
MostTotalRoundsDelegateName string `json:"mostTotalRoundsDelegateName"`
MostTotalRounds int `json:"mostTotalRounds"`
BestBlockVerifierOnlinePercentageDelegateName string `json:"bestBlockVerifierOnlinePercentageDelegateName"`
BestBlockVerifierOnlinePercentage int `json:"bestBlockVerifierOnlinePercentage"`
MostBlockProducerTotalRoundsDelegateName string `json:"mostBlockProducerTotalRoundsDelegateName"`
MostBlockProducerTotalRounds int `json:"mostBlockProducerTotalRounds"`
TotalVotes int64 `json:"totalVotes"`
TotalVoters int `json:"totalVoters"`
AverageVote int64 `json:"averageVote"`
VotePercentage int `json:"votePercentage"`
RoundNumber int `json:"roundNumber"`
TotalRegisteredDelegates int `json:"totalRegisteredDelegates"`
TotalOnlineDelegates int `json:"totalOnlineDelegates"`
CurrentBlockVerifiersMaximumAmount int `json:"currentBlockVerifiersMaximumAmount"`
CurrentBlockVerifiersValidAmount int `json:"currentBlockVerifiersValidAmount"`
}
type APIDPOPSDelegates struct {
Votes int64 `json:"votes"`
Voters int `json:"voters"`
IPAdress string `json:"IPAdress"`
DelegateName string `json:"delegateName"`
SharedDelegate bool `json:"sharedDelegate"`
SeedNode bool `json:"seedNode"`
Online bool `json:"online"`
Fee int `json:"fee"`
TotalRounds int `json:"totalRounds"`
TotalBlockProducerRounds int `json:"totalBlockProducerRounds"`
OnlinePercentage int `json:"onlinePercentage"`
}
type APIDPOPSDelegate struct {
Votes int64 `json:"votes"`
Voters int `json:"voters"`
IPAdress string `json:"IPAdress"`
DelegateName string `json:"delegateName"`
PublicAddress string `json:"publicAddress"`
About string `json:"about"`
Website string `json:"website"`
Team string `json:"team"`
Specifications string `json:"specifications"`
SharedDelegate bool `json:"sharedDelegate"`
SeedNode bool `json:"seedNode"`
Online bool `json:"online"`
Fee int `json:"fee"`
TotalRounds int `json:"totalRounds"`
TotalBlockProducerRounds int `json:"totalBlockProducerRounds"`
OnlinePercentage int `json:"onlinePercentage"`
Rank int `json:"rank"`
}
type APIDPOPSDelegateRoundStats struct {
TotalBlocksProduced int `json:"totalBlocksProduced"`
TotalBlockRewards int64 `json:"totalBlockRewards"`
AveragePercentage int `json:"averagePercentage"`
AverageTime int `json:"averageTime"`
BlocksProduced []struct {
BlockHeight int `json:"blockHeight"`
BlockReward int64 `json:"blockReward"`
Time int `json:"time"`
} `json:"blocksProduced"`
}
type APIDPOPSDelegatesVotes struct {
PublicAddress string `json:"publicAddress"`
Amount int64 `json:"amount"`
ReserveProof string `json:"reserveProof"`
}
type APIDPOPSVoteDetails struct {
DelegateName string `json:"delegateName"`
Amount int64 `json:"amount"`
}
type APIDPOPSRoundDetails struct {
Delegates []string `json:"delegates"`
}
type APIDPOPSLastBlockProducer struct {
LastBlockProducer string `json:"lastBlockProducer"`
}
// XCASH Namespace
type APINamespaceStats struct {
TotalNamesRegisteredOrRenewed int `json:"totalNamesRegisteredOrRenewed"`
TotalVolume int64 `json:"totalVolume"`
}
type APINamespaceRegisteredDelegates struct {
DelegateName string `json:"delegateName"`
PublicAddress string `json:"publicAddress"`
Amount int64 `json:"amount"`
}
type APINamespaceDelegates struct {
DelegateName string `json:"delegateName"`
PublicAddress string `json:"publicAddress"`
Amount int64 `json:"amount"`
TotalNamesRegisteredOrRenewed int `json:"totalNamesRegisteredOrRenewed"`
TotalVolume int64 `json:"totalVolume"`
}
type APINamespaceName struct {
Address string `json:"address"`
Saddress string `json:"saddress"`
Paddress string `json:"paddress"`
Expires int `json:"expires"`
DelegateName string `json:"delegateName"`
DelegateAmount int64 `json:"delegateAmount"`
}
type APINamespaceNameStatus struct {
Status bool `json:"status"`
}
type APINamespaceAddressStatus struct {
Status string `json:"status"`
}
type APINamespaceNameToAddress struct {
Address string `json:"address"`
Saddress string `json:"saddress"`
Paddress string `json:"paddress"`
}
type APINamespaceAddressToName struct {
Name string `json:"name"`
Extension string `json:"extension"`
}
// Xpayment Twitter
type APIXpaymentTwitterStats struct {
TotalUsers int `json:"totalUsers"`
AvgTipAmount int `json:"avgTipAmount"`
TotalDeposits int `json:"totalDeposits"`
TotalWithdraws int `json:"totalWithdraws"`
TotalTipsPublic int `json:"totalTipsPublic"`
TotalTipsPrivate int `json:"totalTipsPrivate"`
TotalVolumeSentPublic int64 `json:"totalVolumeSentPublic"`
TotalVolumeSentPrivate int64 `json:"totalVolumeSentPrivate"`
TotalTipsLastDayPublic int `json:"totalTipsLastDayPublic"`
TotalTipsLastDayPrivate int `json:"totalTipsLastDayPrivate"`
TotalVolumeSentLastDayPublic int64 `json:"totalVolumeSentLastDayPublic"`
TotalVolumeSentLastDayPrivate int64 `json:"totalVolumeSentLastDayPrivate"`
TotalTipsLastHourPublic int `json:"totalTipsLastHourPublic"`
TotalTipsLastHourPrivate int `json:"totalTipsLastHourPrivate"`
TotalVolumeSentLastHourPublic int64 `json:"totalVolumeSentLastHourPublic"`
TotalVolumeSentLastHourPrivate int64 `json:"totalVolumeSentLastHourPrivate"`
}
type APIXpaymentTwitterStatsPerDay struct {
Time int `json:"time"`
Amount int `json:"amount"`
Volume int64 `json:"volume"`
}
type TopTips struct {
Username string `json:"username"`
Tips int `json:"tips"`
}
type TopVolumes struct {
Username string `json:"username"`
Volume int `json:"volume"`
}
type APIXpaymentTwitterTopStats struct {
TopTips []TopTips
TopVolumes []TopVolumes
}
type APIXpaymentTwitterRecentTips struct {
TweetID string `json:"tweetId"`
FromUser string `json:"fromUser"`
ToUser string `json:"toUser"`
Amount int64 `json:"amount"`
Time int `json:"time"`
Type string `json:"type"`
}