forked from PIVX-Labs/MyPIVXWallet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
2468 lines (2167 loc) · 136 KB
/
index.html
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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<link rel="shortcut icon" href="assets/favicon.ico" type="image/x-icon">
<!-- Primary Meta Tags -->
<title>My PIVX Wallet</title>
<meta name="title" content="My PIVX Wallet">
<meta name="description" content="The wallet of the future - Receive, Send, Stake and Exchange using a completely decentralized, open-source, battle-hardened PIVX wallet.">
<meta name="keywords" content="web,wallet,webwallet,crypto,cryptocurrency,opensource,oss,pivx,staking,masternodes,exchange,swap,decentralized">
<meta name="mobile-web-app-capable" content="yes">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:locale" content="en_GB">
<meta property="og:url" content="https://mypivxwallet.org/">
<meta property="og:title" content="My PIVX Wallet">
<meta property="og:description" content="The wallet of the future - Receive, Send, Stake and Exchange using a completely decentralized, open-source, battle-hardened PIVX wallet.">
<meta property="og:image" content="https://mypivxwallet.org/assets/logo_opaque-dark-bg.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://mypivxwallet.org/">
<meta property="twitter:title" content="My PIVX Wallet">
<meta property="twitter:description" content="The wallet of the future - Receive, Send, Stake and Exchange using a completely decentralized, open-source, battle-hardened PIVX wallet.">
<meta property="twitter:image" content="https://mypivxwallet.org/assets/logo_opaque-dark-bg.png">
<!-- Colour Theme -->
<meta name="msapplication-TileColor" content="#470e75">
<meta name="theme-color" content="#470e75">
<link rel="icon" type="image/png" href="https://mypivxwallet.org/assets/logo_opaque-dark-bg.png">
<link rel="canonical" href="https://mypivxwallet.org/">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/bootstrap-4.5.0/css/bootstrap.min.css">
<link href="assets/fontawesome/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/style/style.css">
<script type="text/javascript" src="assets/bootstrap-4.5.0/js/jquery.js"></script>
<script type="text/javascript" src="assets/bootstrap-4.5.0/js/bootstrap.js"></script>
<script type="text/javascript" src="scripts/libs/jdenticon.min.js"></script>
<script>
// TRANSLATION
// We use this function to parse the UA lang in a safer way: for example, there's multiple `en` definitions
// ... but we shouldn't duplicate the language files, we can instead cut the affix (US, GB) and simply use 'en'.
// ... This logic may apply to other languages with such subsets as well, so take care of them here!
const arrLangsWithSubset = ['en'];
function parseUserAgentLang(strUA) {
if (arrLangsWithSubset.some(strLang => strUA.includes(strLang))) {
// Split the lang in to 'primary' and 'subset', only use the primary lang
return strUA.substring(0, 2);
}
// Otherwise, just use the full language spec
return strUA;
}
const strLang = parseUserAgentLang(window.navigator.userLanguage || window.navigator.language);
//When adding a lang remember to add it to the object translatableLanguages as well as here.
//When removing you do not have to remove from translatableLanguages
const arrActiveLangs = ['en', 'uwu'];
//Due to the need to switch language we need to load all the languages and then set the active one to the translation variable
for(i=0; i<arrActiveLangs.length; i++){
document.write('\x3Cscript src="locale/' + arrActiveLangs[i] + '/translation.js">\x3C/script>')
}
</script>
<!--- IMPORTANT: CHAIN PARAMS BELOW, DO NOT EDIT UNLESS YOU'RE ABSOLUTELY CERTAIN YOU KNOW WHAT YOU'RE DOING --->
<script>
// In most BTC-derived coins, the below parameters can be found in the 'src/chainparams.cpp' Mainnet configuration.
// These below params share the same names as the CPP params, so finding and editing these is easy-peasy!
// <[network_byte] [32_byte_payload] [0x01] [4_byte_checksum]>
const PRIVKEY_BYTE_LENGTH = 38;
const COIN_DECIMALS = 8;
const COIN = 10**8;
/* Internal tweaking parameters */
// A new encryption password must be 'at least' this long.
const MIN_PASS_LENGTH = 6;
// Cool stuff
const donationAddress = "DLabsktzGMnsK5K9uRTMCF6NoYNY6ET4Bb";
/* chainparams */
const cChainParams = {
current: null,
main: {
collateralInSats : 10000 * COIN,
isTestnet : false,
TICKER : "PIV",
PUBKEY_PREFIX : ["D"],
STAKING_PREFIX : "S",
PUBKEY_ADDRESS : 30,
SECRET_KEY : 212,
BIP44_TYPE : 119,
BIP44_TYPE_LEDGER : 77,
MASTERNODE_PORT : 51472,
// A list of Labs-trusted explorers
Explorers : [
// Display name Blockbook-compatible API base
{ name: "rockdev", url: "https://explorer.rockdev.org" },
{ name: "zkBitcoin", url: "https://zkbitcoin.com" }
],
Nodes: [
{ name: "duddino", url: "https://rpc.duddino.com/mainnet"}
],
Consensus : {
// Network upgrades
UPGRADE_V6_0 : undefined
},
},
testnet: {
collateralInSats : 10000 * COIN,
isTestnet : true,
TICKER : "tPIV",
PUBKEY_PREFIX : ["x","y"],
STAKING_PREFIX : "W",
PUBKEY_ADDRESS : 139,
SECRET_KEY : 239,
BIP44_TYPE : 1,
BIP44_TYPE_LEDGER : 1,
MASTERNODE_PORT : 51474,
// A list of Labs-trusted explorers
Explorers : [
// Display name Blockbook-compatible API base
{ name: "rockdev", url: "https://testnet.rockdev.org" }
],
Nodes: [
{ name: "duddino", url: "https://rpc.duddino.com/testnet"}
],
Consensus : {
// Network upgrades
UPGRADE_V6_0 : undefined
},
}
}
// Set default chain
cChainParams.current = cChainParams.main;
</script>
</head>
<body>
<div id="page-container" class="home-hero">
<div id="content-wrap">
<!-- NAVBAR -->
<nav class="navbar navbar-expand-lg sticky-top navbar-dark navbarSpecial">
<div class="container">
<img onclick="playMusic()" class="nav-logo navbar-brand noselect" src='assets/logo.png' alt="PIVX">
<button id="navbarToggler" class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse noselect" id="navbarNav">
<!-- MAIN NAVBAR -->
<ul class="navbar-nav mr-auto ptr">
<li class="nav-item"><a id='start' class="nav-link tablinks" onclick="openTab(event, 'home')" data-i18n="navIntro">Intro</a></li>
<li class="nav-item"><a class="nav-link tablinks" onclick="openTab(event, 'keypair')" data-i18n="navDashboard">Dashboard</a></li>
<li class="nav-item"><a id="txTab" class="nav-link tablinks" onclick="openTab(event, 'Transaction')" data-i18n="navSend">Send</a></li>
<li class="nav-item"><a id="stakeTab" class="nav-link tablinks" onclick="openTab(event, 'StakingTab')" data-i18n="navStake">Stake</a></li>
<li class="nav-item"><a id="masternodeTab" class="nav-link tablinks" onclick="openTab(event, 'Masternode')" data-i18n="navMasternode">Masternode</a></li>
<li class="nav-item"><a id="governanceTab" class="nav-link tablinks" onclick="openTab(event, 'Governance')" data-i18n="navGovernance">Governance</a></li>
<li class="nav-item"><a class="nav-link tablinks" onclick="openTab(event, 'Settings');" data-i18n="navSettings">Settings</a></li>
</ul>
<!-- SIDE NAVBAR -->
<div class="form-inline my-2 my-lg-0">
<ul class="navbar-nav mr-auto ptr">
<li class="nav-item"><a class="nav-link tablinks active" id="Testnet" onclick="toggleTestnet()" data-i18n="navTestnet"><b>Testnet Mode On</b></a></li>
<li class="nav-item"><a class="nav-link tablinks active" id="Network" onclick="toggleNetwork()"><span data-i18n="navNetwork">Network:</span> <span id="NetworkE" data-i18n="enabled">Enabled</span><span id="NetworkD" data-i18n="disabled">Disabled</span></a></li>
<li class="nav-item"><a class="nav-link tablinks active" id="Debug" onclick="toggleDebug()"><b>DEBUG MODE ON</b></a></li>
</ul>
</div>
</div>
</div>
</nav>
<!-- // NAVBAR -->
<!-- // WARNING MESSAGE -->
<div class="warning-message" id='outdated'>
<div class="container">
<p>WARNING: your version is outdated,
please update to the newest stable version at the <a href='https://github.com/PIVX-Labs/MyPIVXWallet/releases'>MyPIVXWallet Github</a>
</p>
</div>
</div>
<!-- // WARNING MESSAGE -->
<!-- // QR MODAL -->
<div class="modal fade" id="qrModal" tabindex="-1" role="dialog" aria-labelledby="qrModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="qrModalLabel">Address QR</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body center-text">
<p id="ModalQRLabel" class="modal-label"></p>
<div id="ModalQR" class="auto-fit"></div>
</div>
</div>
</div>
</div>
<br>
<!-- // MNEMONIC MODAL -->
<div class="modal fade" id="mnemonicModal" tabindex="-1" role="dialog" aria-labelledby="qrModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body center-text">
<p id="ModalMnemonicLabel" class="modal-label"></p>
<div id="ModalMnemonic" class="auto-fit">
This is your seed phrase:
<b>
<div class="seed-phrase noselect" id="ModalMnemonicContent">
<!-- Test1 Test2 Test1 Test2 Test1 Test2 Test1 Test2 Test1 Test2 Test1 Test2 -->
</div>
</b>
<br>
Write it down somewhere. You'll only see this <b>once!</b>
<br>
Anyone with a copy of it can access <b>all</b> of your funds.
<br>
<b>Do NOT share it with anybody</b>.
<br><br>
<a href="https://www.ledger.com/blog/how-to-protect-your-seed-phrase" target="_blank"><i>It is <b>NOT</b> advised to store this digitally.</i></a>
<br><br>
</div>
<div class="modal-footer">
<button type="button" id="modalMnemonicConfirmButton" class="pivx-button-big">I have written down my seed phrase</button>
</div>
</div>
</div>
</div>
</div>
<br>
<!-- // CONFIRM MODAL -->
<div class="modal" id="confirmModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered" role="document" style="max-width: 600px">
<div class="modal-content">
<div class="modal-header" id="confirmModalHeader">
<h3 class="modal-title" id="confirmModalTitle" style="text-align: center;width: 100%;color: #8e21ff;">Insert cool popup title</h3>
</div>
<div id="confirmModalContent" class="modal-body center-text">
<!-- JS populated modal content -->
</div>
<div class="modal-footer" hidden="true" id="confirmModalButtons">
<button type="button" id="confirmModalConfirmButton" class="pivx-button-big" style="float: right">Confirm</button>
<button type="button" id="confirmModalCancelButton" class="pivx-button-big" style="float: right; opacity: 0.7;">Cancel</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row no-gutters">
<div class='col-md-12 rm-pd'>
<div id="home" class="tabcontent">
<!-- PIVX TITLE SECTION -->
<div class="col-md-12 title-section float-left rm-pd">
<h1 class="pivx-bold-title center-text"><span data-i18n="title">Welcome to</span> <div data-i18n="titleName">My PIVX Wallet!</div></h1>
</div>
<!-- // PIVX TITLE SECTION -->
<!-- PIVX FEATURE SECTION -->
<div class="col-md-12 features-section float-left rm-pd intro-page">
<!-- PIVX FEATURE -->
<div class="col-md-6 float-left pivx-feature-father">
<div class="col-md-11 pivx-feature-interior">
<div class="col-md-12 feature-icon">
<img src="https://pivx.org/build/images/content/img_governance.png" alt="PIVX Governance">
</div>
<h4 data-i18n="cardOneTitle">Be your own Bank!</h4>
<h5 data-i18n="cardOneDesc">
MyPIVXWallet has <b>no custody</b> over your funds. You are in full ownership of your keys and your PIV.
</h5>
<span onclick="window.location.href='https://forum.pivx.org/threads/mypivxwallet-an-easy-open-source-self-sovereign-pivx-wallet.873/'" class="purple-icon-link ptr">
<span data-i18n="cardOneLink">Know more</span><span class="link-icon link-icon-suffix"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</span>
</div>
</div>
<!-- // PIVX FEATURE -->
<!-- PIVX FEATURE -->
<div class="col-md-6 float-left pivx-feature-father">
<div class="col-md-11 pivx-feature-interior">
<div class="col-md-12 feature-icon">
<img src="https://pivx.org/build/images/content/img_pos.png" alt="PIVX Proof of Stake (PoS)">
</div>
<h4 data-i18n="cardTwoTitle">Universal and Portable</h4>
<h5 data-i18n="cardTwoDesc">
You can generate cryptographically-secure addresses with your browser and hardware.
</h5>
<span onclick="window.location.href='https://forum.pivx.org/threads/mypivxwallet-an-easy-open-source-self-sovereign-pivx-wallet.873/'" class="purple-icon-link ptr">
<span data-i18n="cardTwoLink">Know more</span><span class="link-icon link-icon-suffix"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</span>
</div>
</div>
<!-- // PIVX FEATURE -->
<!-- PIVX FEATURE -->
<div class="col-md-6 float-left pivx-feature-father">
<div class="col-md-11 pivx-feature-interior">
<div class="col-md-12 feature-icon">
<img src="https://pivx.org/build/images/content/img_privacy.png" alt="PIVX Privacy" class="smaller-feature">
</div>
<h4 data-i18n="cardThreeTitle">Don't trust, verify!</h4>
<h5 data-i18n="cardThreeDesc">
MyPIVXWallet is completely open-source, available on the PIVX Labs github.
</h5>
<span onclick="window.location.href='https://forum.pivx.org/threads/mypivxwallet-an-easy-open-source-self-sovereign-pivx-wallet.873/'" class="purple-icon-link ptr">
<span data-i18n="cardThreeLink">Know more</span><span class="link-icon link-icon-suffix"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</span>
</div>
</div>
<!-- // PIVX FEATURE -->
<!-- PIVX FEATURE -->
<div class="col-md-6 float-left pivx-feature-father">
<div class="col-md-11 pivx-feature-interior">
<div class="col-md-12 feature-icon">
<img src="https://pivx.org/build/images/content/img_slider_bars.png" alt="PIVX Bar Chart" class="smaller-feature">
</div>
<h4 data-i18n="cardFourTitle">For the community</h4>
<h5 data-i18n="cardFourDesc">
MyPIVXWallet is built with love without any fees, privacy intrusions or advertising.
</h5>
<span onclick="window.location.href='https://forum.pivx.org/threads/mypivxwallet-an-easy-open-source-self-sovereign-pivx-wallet.873/'" class="purple-icon-link ptr">
<span data-i18n="cardFourLink">Know more</span><span class="link-icon link-icon-suffix"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</span>
</div>
</div>
<!-- // PIVX FEATURE -->
</div>
<!-- // PIVX FEATURE SECTION -->
<!-- PIVX DONATION SECTION -->
<div class="col-md-12 donation-section float-left rm-pd text-center">
<button class="pivx-button-big" onclick="guiPreparePayment(donationAddress)">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70"><path d="M3.497 25.717C1.401 25.588 0 23.847 0 21.753v-2.535c0-.775.149-1.593.925-1.593h22.719c2.173 0 3.941 1.861 3.941 4.034 0 2.174-1.769 3.988-3.941 3.988l-20.207.048c-.02 0 .08.023.06.022z"></path><path d="M5.229 69.625C4.455 69.625 4 68.494 4 67.719V38.661c0-1.911 1.447-3.731 3.258-3.989.175-.029.285-.047.483-.047h21.525c7.137 0 12.751-5.86 12.751-13.027 0-7.096-5.528-12.841-12.586-13.177-.002 0-.671.016-1.41.016l-20.335.066C5.529 8.373 4 6.652 4 4.558V2.023C4 1.247 4.407.625 5.183.625h24.059c11.57 0 20.654 9.546 20.706 21.104 0 9.378-6.307 17.727-15.337 20.311-1.622.445-3.122.705-4.735.778L12 42.842v22.485c0 2.156-2.141 4.298-4.235 4.298H5.229z"></path></svg></span>
<span class="buttoni-text" data-i18n="buttonDonate">Donate - Pay with MyPIVXWallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
<!-- // PIVX DONATION SECTION -->
</div>
<!-- KEYPAIR SECTION -->
<div id="keypair" class="tabcontent">
<!-- PIVX TITLE SECTION -->
<div class="col-md-12 title-section rm-pd">
<h3 class="pivx-bold-title center-text" data-i18n="dashboardTitle">Dashboard</h3>
</div>
<!-- // PIVX TITLE SECTION -->
<!-- GENERATE WALLET -->
<div id='generateWallet' class="dashboard-item">
<div class="container">
<div class="coinstat-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M15.059 43.898h-3.196a.827.827 0 000 1.653h3.196a.826.826 0 100-1.653zM38.851 8.781a.826.826 0 00-1.42.577v4.015H13.847a.827.827 0 100 1.654h24.411c.457 0 .826-.37.826-.827v-2.805l5.548 5.707-5.548 5.389V19.27a.826.826 0 00-.826-.826H15.5a.826.826 0 000 1.653h9.419v3.881a.826.826 0 101.653 0v-3.881h10.859v4.35a.828.828 0 001.402.594l7.545-7.328a.826.826 0 00.016-1.169l-7.543-7.763zM9.99 13.372a.827.827 0 100 1.654h.661a.827.827 0 000-1.654H9.99zm38.792 12.895h-.771a.826.826 0 100 1.653h.771a.827.827 0 000-1.653z"></path><path d="M45.035 26.267H20.68V21.89a.827.827 0 00-1.403-.593l-7.543 7.327a.827.827 0 00-.016 1.169l7.543 7.76a.824.824 0 00.904.19.829.829 0 00.516-.767v-3.988h4.239v6.943H1.988V7.641h22.931v3.941a.826.826 0 001.653 0v-6.01A4.667 4.667 0 0021.91.91H4.997A4.667 4.667 0 00.335 5.572v34.803a.81.81 0 00-.099.383c0 .14.038.27.099.384v3.445a4.668 4.668 0 004.662 4.663h16.912a4.668 4.668 0 004.662-4.663V32.988h14.276a.826.826 0 100-1.653H19.853a.827.827 0 00-.827.827v2.779l-5.548-5.708 5.548-5.388v3.248c0 .456.37.827.827.827h25.182a.826.826 0 000-1.653zM4.997 2.563h16.912c1.66 0 3.009 1.35 3.009 3.009v.416H1.988v-.416a3.013 3.013 0 013.009-3.009zm16.912 45.034H4.997a3.013 3.013 0 01-3.009-3.01v-3.002h22.931v3.002a3.014 3.014 0 01-3.01 3.01z"></path></svg>
</div>
<div class="col-md-12 dashboard-title">
<h3 class="pivx-bold-title-smaller"><span data-i18n="dCardOneTitle">Create a</span> <div data-i18n="dCardOneSubTitle">New Wallet</div></h3>
<p data-i18n="dCardOneDesc">This will create a new, random PIVX wallet that will contain no initial funds, you may transfer to-and-from this wallet with ease.</p>
</div>
<button class="pivx-button-big" onclick="generateWallet()">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70"><path d="M3.497 25.717C1.401 25.588 0 23.847 0 21.753v-2.535c0-.775.149-1.593.925-1.593h22.719c2.173 0 3.941 1.861 3.941 4.034 0 2.174-1.769 3.988-3.941 3.988l-20.207.048c-.02 0 .08.023.06.022z"></path><path d="M5.229 69.625C4.455 69.625 4 68.494 4 67.719V38.661c0-1.911 1.447-3.731 3.258-3.989.175-.029.285-.047.483-.047h21.525c7.137 0 12.751-5.86 12.751-13.027 0-7.096-5.528-12.841-12.586-13.177-.002 0-.671.016-1.41.016l-20.335.066C5.529 8.373 4 6.652 4 4.558V2.023C4 1.247 4.407.625 5.183.625h24.059c11.57 0 20.654 9.546 20.706 21.104 0 9.378-6.307 17.727-15.337 20.311-1.622.445-3.122.705-4.735.778L12 42.842v22.485c0 2.156-2.141 4.298-4.235 4.298H5.229z"></path></svg></span>
<span class="buttoni-text" data-i18n="dCardOneButton">Create A New Wallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
<!-- // GENERATE WALLET -->
<br>
<!-- WALLET FUNCTIONALITIES -->
<!-- WARNING -->
<div id='genKeyWarning' style='display: none;' class="alert alert-danger col-md-12" role="alert">
<div style="max-width: 100% !important;">
<p id="encryptWarningText" class="center-text">
<b>WARNING</b><br>
If you don't save your private key you will lose access to your funds!<br>
Would you like to encrypt & save your wallet in your browser?
</p>
</div>
<div id="encryptPassword" style="display: none !important; max-width: 100% !important; max-width: 100% !important;">
<input class="center-text" style="width: 100%; font-family: monospace;" type="password" id="newPassword" placeholder="Enter Password">
<input class="center-text" style="width: 100%; font-family: monospace;" type="password" id="newPasswordRetype" placeholder="Re-type Password">
</div>
<button class="pivx-button-big" onclick="guiEncryptWallet()" style="float: none;margin: 0 auto;display: block;">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M85.967 10.65l-32.15-9.481a13.466 13.466 0 00-7.632 0l-32.15 9.48C11.661 11.351 10 13.567 10 16.042v26.623c0 12.321 3.67 24.186 10.609 34.31 6.774 9.885 16.204 17.49 27.264 21.99a5.612 5.612 0 004.251 0c11.061-4.5 20.491-12.104 27.266-21.99C86.329 66.85 90 54.985 90 42.664V16.042a5.656 5.656 0 00-4.033-5.392zM69 68.522C69 70.907 67.03 72 64.584 72H34.092C31.646 72 30 70.907 30 68.522v-23.49C30 42.647 31.646 41 34.092 41H37v-9.828C37 24.524 41.354 18.5 49.406 18.5 57.37 18.5 62 24.066 62 31.172V41h2.584C67.03 41 69 42.647 69 45.032v23.49zM58 41v-9.828c0-4.671-3.708-8.472-8.5-8.472-4.791 0-8.5 3.8-8.5 8.472V41h17z"></path></svg></span>
<span class="buttoni-text" id="encryptButton">Set Password</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
<!-- // WARNING -->
<br>
<!-- WALLET FEATURES -->
<div id="guiWallet" style="display: none;">
<div id="bcg-wallet-box">
<div id="headline-balance">
<div id="balance-box" class="large-box">
<div id="window-icon-piv">
<div id="piv-ring"></div>
<div id="number-piv">
<p id="guiBalanceBox"><b id="guiBalance">~</b> <span id="guiBalanceTicker">PIV</span></p>
</div>
</div>
<div id="bal-title">
<h3 class="noselect balance-title">Balance <span id="balanceReload" class="reload noselect" onclick="refreshChainData()">↻</span></h3>
</div>
</div>
</div>
<!-- WALLET FEATURE -->
<div id="big-frame-address">
<div id="address-box" class="large-box">
<div id="title-address-box">
<h3 class="noselect addr-title">Address</h3>
</div>
<div id="box-info-address">
<div id="ring">
<canvas id="identicon" class="innerShadow" width="65" height="65" data-jdenticon-value=""></canvas>
</div>
<div id="address-info">
<b id="guiAddress">~</b>
<b id="guiQRButton">
<i data-toggle="modal" data-target="#qrModal" class="fas fa-qrcode fa-stacked-ptr"></i>
<i id="guiNewAddress" onclick="getNewAddress({updateGUI: true, verify: true})" class="fas fa-sync fa-stacked-ptr"></i>
<i onclick="toClipboard('guiAddress', this)" id="guiAddressCopy" class="fas fa-clipboard fa-stacked-ptr"></i>
<i id="guiExportWallet" onclick="toggleExportUI()" class="fas fa-share fa-stacked-ptr"></i>
</b>
</div>
</div>
<div id="exportKeyDiv" hidden="true">
Your private key:
<div class="export-key private-key-area" id="exportKeyText"> </div>
</div>
</div>
</div>
</div>
</div>
<!-- WALLET FEATURES -->
<!-- // WALLET FUNCTIONALITIES -->
<!-- GENERATE VANITY WALLET -->
<div id='generateVanityWallet' class="dashboard-item">
<div class="container">
<div class="coinstat-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M45.936 22.101c-1.321-4.06-2.976-6.808-3.045-6.922a.754.754 0 00-1.39.506c.003.016.193 1.655-1.762 3.08-.671.49-1.896.378-2.569-.234-.828-.753-.744-2.081.237-3.738C40.95 8.818 35.582 1.034 35.352.707a.757.757 0 00-1.369.35c-.002.022-.264 2.274-1.601 4.499-1.747 2.906-4.447 4.417-8.026 4.491-5.056.105-8.143 1.798-9.843 3.201-1.885 1.556-2.542 3.111-2.569 3.176a.755.755 0 00.525 1.022c1.916.45 2.546 1.966 2.503 3.127-.038 1.027-.636 2.314-2.201 2.563-1.112.176-1.965-.002-2.535-.532-1.144-1.063-.975-3.236-.973-3.256a.755.755 0 00-1.232-.65c-4.492 3.706-6.797 10.581-5.735 17.109.468 2.875 1.59 5.545 3.247 7.724 1.854 2.437 4.333 4.266 7.372 5.434a.754.754 0 10.542-1.408C6.292 44.8 4.323 38.86 3.787 35.563a18.666 18.666 0 01.711-8.828c.754-2.28 1.901-4.258 3.354-5.803.154.907.518 1.99 1.352 2.77.928.866 2.208 1.176 3.805.922 2.001-.317 3.396-1.923 3.472-3.997.06-1.631-.775-3.485-2.732-4.342.97-1.445 3.855-4.591 10.639-4.732 5.173-.107 7.922-2.926 9.317-5.272.666-1.12 1.09-2.23 1.356-3.125.397.746.855 1.708 1.234 2.79 1.136 3.235 1.072 5.953-.187 8.077-1.94 3.273-.615 5.022.044 5.622 1.212 1.102 3.219 1.252 4.475.337.998-.728 1.583-1.517 1.924-2.229a37.385 37.385 0 011.962 4.852c1.156 3.565 2.237 8.886.819 13.997-1.352 4.873-4.731 8.762-10.044 11.56a.755.755 0 00.704 1.335c5.698-3.001 9.331-7.206 10.796-12.5 1.519-5.484.375-11.128-.852-14.896z"></path><path d="M40.953 11.943a.754.754 0 101.459-.376l-.294-1.143a.756.756 0 00-1.462.377l.297 1.142zM25.17 33.984a.848.848 0 000-1.694h-6.537a.117.117 0 00-.117.118v.729c0 .454.358.825.805.853l5.849-.006z"></path><path d="M26.779 27.343h-6.921a.117.117 0 00-.118.117v.73a.86.86 0 00.805.853l5.883-.015c.219 0 .419.007.419.007a4.106 4.106 0 013.896 4.103 4.083 4.083 0 01-3.957 4.08h-6.192c-.041 0-.083 0-.124.009a.838.838 0 00-.715.775v8.363c0 .066.055.115.117.115h.729a.859.859 0 00.854-.807v-6.651c0-.057.055-.105.109-.105l5.346-.008a6.014 6.014 0 001.334-.213 5.788 5.788 0 004.205-5.567 5.81 5.81 0 00-5.67-5.786z"></path></svg>
</div>
<div class="col-md-12 dashboard-title">
<h3 class="pivx-bold-title" style="font-size:38px;"><span data-i18n="dCardTwoTitle" >Create a new</span> <div data-i18n="dCardTwoSubTitle">Vanity Wallet</div></h3>
<span class="badge badge-warning" data-i18n="experimental" >Experimental</span>
<p data-i18n="dCardTwoDesc">This will create a PIVX wallet with a customized prefix of your choosing, requiring more processing power to generate such addresses, it is recommended to generate a prefix of less than 6 characters, for example: "DAD" is a possible address prefix.</p>
<span style="opacity: 0.75; font-size: small;">*Note: Generated addresses will automatically be preceded by the network prefix: <b id='prefixNetwork'></b></span></p>
</div>
<input class="center-text" style="display:none;" type="text" id='prefix' placeholder="Address Prefix" onkeypress="checkVanity()">
<button class="pivx-button-big" onclick="generateVanityWallet()">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70"><path d="M3.497 25.717C1.401 25.588 0 23.847 0 21.753v-2.535c0-.775.149-1.593.925-1.593h22.719c2.173 0 3.941 1.861 3.941 4.034 0 2.174-1.769 3.988-3.941 3.988l-20.207.048c-.02 0 .08.023.06.022z"></path><path d="M5.229 69.625C4.455 69.625 4 68.494 4 67.719V38.661c0-1.911 1.447-3.731 3.258-3.989.175-.029.285-.047.483-.047h21.525c7.137 0 12.751-5.86 12.751-13.027 0-7.096-5.528-12.841-12.586-13.177-.002 0-.671.016-1.41.016l-20.335.066C5.529 8.373 4 6.652 4 4.558V2.023C4 1.247 4.407.625 5.183.625h24.059c11.57 0 20.654 9.546 20.706 21.104 0 9.378-6.307 17.727-15.337 20.311-1.622.445-3.122.705-4.735.778L12 42.842v22.485c0 2.156-2.141 4.298-4.235 4.298H5.229z"></path></svg></span>
<span class="buttoni-text" id="vanButtonText" data-i18n="dCardTwoButton" >Create A Vanity Wallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
<!-- // GENERATE VANITY WALLET -->
<br>
<!-- ACCESS LEDGER HARDWARE WALLET -->
<div id='generateHardwareWallet' class="dashboard-item">
<div class="container">
<div class="coinstat-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
<path d="M45.936 22.101c-1.321-4.06-2.976-6.808-3.045-6.922a.754.754 0 00-1.39.506c.003.016.193 1.655-1.762 3.08-.671.49-1.896.378-2.569-.234-.828-.753-.744-2.081.237-3.738C40.95 8.818 35.582 1.034 35.352.707a.757.757 0 00-1.369.35c-.002.022-.264 2.274-1.601 4.499-1.747 2.906-4.447 4.417-8.026 4.491-5.056.105-8.143 1.798-9.843 3.201-1.885 1.556-2.542 3.111-2.569 3.176a.755.755 0 00.525 1.022c1.916.45 2.546 1.966 2.503 3.127-.038 1.027-.636 2.314-2.201 2.563-1.112.176-1.965-.002-2.535-.532-1.144-1.063-.975-3.236-.973-3.256a.755.755 0 00-1.232-.65c-4.492 3.706-6.797 10.581-5.735 17.109.468 2.875 1.59 5.545 3.247 7.724 1.854 2.437 4.333 4.266 7.372 5.434a.754.754 0 10.542-1.408C6.292 44.8 4.323 38.86 3.787 35.563a18.666 18.666 0 01.711-8.828c.754-2.28 1.901-4.258 3.354-5.803.154.907.518 1.99 1.352 2.77.928.866 2.208 1.176 3.805.922 2.001-.317 3.396-1.923 3.472-3.997.06-1.631-.775-3.485-2.732-4.342.97-1.445 3.855-4.591 10.639-4.732 5.173-.107 7.922-2.926 9.317-5.272.666-1.12 1.09-2.23 1.356-3.125.397.746.855 1.708 1.234 2.79 1.136 3.235 1.072 5.953-.187 8.077-1.94 3.273-.615 5.022.044 5.622 1.212 1.102 3.219 1.252 4.475.337.998-.728 1.583-1.517 1.924-2.229a37.385 37.385 0 011.962 4.852c1.156 3.565 2.237 8.886.819 13.997-1.352 4.873-4.731 8.762-10.044 11.56a.755.755 0 00.704 1.335c5.698-3.001 9.331-7.206 10.796-12.5 1.519-5.484.375-11.128-.852-14.896z"></path>
<path d="M40.953 11.943a.754.754 0 101.459-.376l-.294-1.143a.756.756 0 00-1.462.377l.297 1.142zM25.17 33.984a.848.848 0 000-1.694h-6.537a.117.117 0 00-.117.118v.729c0 .454.358.825.805.853l5.849-.006z"></path>
<path d="M26.779 27.343h-6.921a.117.117 0 00-.118.117v.73a.86.86 0 00.805.853l5.883-.015c.219 0 .419.007.419.007a4.106 4.106 0 013.896 4.103 4.083 4.083 0 01-3.957 4.08h-6.192c-.041 0-.083 0-.124.009a.838.838 0 00-.715.775v8.363c0 .066.055.115.117.115h.729a.859.859 0 00.854-.807v-6.651c0-.057.055-.105.109-.105l5.346-.008a6.014 6.014 0 001.334-.213 5.788 5.788 0 004.205-5.567 5.81 5.81 0 00-5.67-5.786z"></path>
</svg>
</div>
<div class="col-md-12 dashboard-title">
<h3 class="pivx-bold-title" style="font-size:38px;"><span data-i18n="dCardThreeTitle">Access your</span><div data-i18n="dCardThreeSubTitle">Hardware Wallet</div></h3>
<p data-i18n="dCardThreeDesc">This will help managing the PIVX wallet on your ledger. Notice that the private key will remain safe in your hardware device</p>
</div>
<button class="pivx-button-big" onclick="importWallet({isHardwareWallet: true})">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70">
<path d="M3.497 25.717C1.401 25.588 0 23.847 0 21.753v-2.535c0-.775.149-1.593.925-1.593h22.719c2.173 0 3.941 1.861 3.941 4.034 0 2.174-1.769 3.988-3.941 3.988l-20.207.048c-.02 0 .08.023.06.022z"></path>
<path d="M5.229 69.625C4.455 69.625 4 68.494 4 67.719V38.661c0-1.911 1.447-3.731 3.258-3.989.175-.029.285-.047.483-.047h21.525c7.137 0 12.751-5.86 12.751-13.027 0-7.096-5.528-12.841-12.586-13.177-.002 0-.671.016-1.41.016l-20.335.066C5.529 8.373 4 6.652 4 4.558V2.023C4 1.247 4.407.625 5.183.625h24.059c11.57 0 20.654 9.546 20.706 21.104 0 9.378-6.307 17.727-15.337 20.311-1.622.445-3.122.705-4.735.778L12 42.842v22.485c0 2.156-2.141 4.298-4.235 4.298H5.229z"></path>
</svg></span>
<span class="buttoni-text" data-i18n="dCardThreeButton">Access my hardware wallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path>
</svg></span>
</button>
</div>
</div>
<!-- // IMPORT LEDGER HARDWARE WALLET -->
<br>
<!-- ACCESS WALLET -->
<div id="accessWallet" class="dashboard-item" style="margin-bottom:100px;">
<div class="container">
<div class="coinstat-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M33.722 29.626c-5.494 1.373-8.848 6.96-7.475 12.456a10.2 10.2 0 004.679 6.316 10.212 10.212 0 007.778 1.159 10.21 10.21 0 006.317-4.681 10.205 10.205 0 001.156-7.776c-1.372-5.494-6.959-8.847-12.455-7.474zm10.063 14.511a8.77 8.77 0 01-5.433 4.022 8.771 8.771 0 01-6.685-.994 8.778 8.778 0 01-4.024-5.433c-1.182-4.725 1.702-9.529 6.427-10.71a8.832 8.832 0 012.141-.265c3.958 0 7.569 2.684 8.57 6.692a8.776 8.776 0 01-.996 6.688z"></path><path d="M26.835 47.111H10.727v-3.539h13.229a.72.72 0 000-1.439H10.727v-3.46h12.787a.72.72 0 100-1.439H8.292v-3.461h17.216a.718.718 0 100-1.439h-7.512V30.5a.515.515 0 10-1.028 0v1.834h-6.24v-3.423h1.042V30.5a.514.514 0 101.028 0v-1.589h1.671V30.5a.514.514 0 101.028 0v-1.589h14.946a.72.72 0 100-1.439h-4.227v-10.61c0-1.086.136-2.098.355-3.031a9.03 9.03 0 001.901.037c1.952-.177 3.519-1.027 4.527-2.46C35.914 7.268 34.3.841 34.229.569a.718.718 0 00-.857-.521c-.112.025-2.776.646-5.324 2.137-3.532 2.069-5.09 4.802-4.508 7.905a.72.72 0 101.414-.266c-.464-2.477.812-4.624 3.797-6.38 1.605-.945 3.308-1.524 4.237-1.799.117.638.268 1.65.301 2.813.052 1.771-.161 4.271-1.466 6.124-.762 1.081-1.919 1.704-3.44 1.85a7.342 7.342 0 01-1.397-.002c1.253-3.551 3.606-5.621 3.639-5.647a.72.72 0 10-.936-1.094c-.156.133-3.046 2.654-4.317 7.018a.617.617 0 00-.046.129c-.007.027-.008.054-.012.081a14.777 14.777 0 00-.535 3.948v3.502a20.63 20.63 0 00-1.5-1.928c.199-.761.804-3.777-1.522-5.652-3.09-2.491-9.616-1.796-9.892-1.766a.719.719 0 00-.609.926c.12.388 2.883 9.168 8.321 9.168.205 0 .414-.012.626-.038a.72.72 0 00-.174-1.43c-1.896.231-3.704-1.017-5.368-3.71-.819-1.326-1.401-2.698-1.725-3.553a24.135 24.135 0 012.563.002c2.438.137 4.289.663 5.354 1.521 1.149.926 1.27 2.31 1.189 3.25-1.439-1.353-2.536-1.932-2.619-1.975a.719.719 0 10-.659 1.28c.034.018 3.374 1.782 6.015 6.661v4.352H10.007a.72.72 0 00-.72.72v4.142H7.572a.72.72 0 00-.72.72v4.897a.72.72 0 00.72.721h1.716v9.155c0 .398.322.72.72.72h16.828a.72.72 0 10-.001-1.439zM45.188 9.529a.72.72 0 00.721-.72v-.642a.72.72 0 00-1.441 0v.643a.72.72 0 00.72.719zm0 4.407a.72.72 0 00.721-.72v-.642a.72.72 0 00-1.441 0v.642c0 .397.322.72.72.72zm-2.525-2.525h.644a.72.72 0 000-1.439h-.644a.718.718 0 100 1.439zm4.406 0h.643a.72.72 0 100-1.439h-.643a.72.72 0 100 1.439zm-9.245 10.11a.721.721 0 00.721-.72v-.643a.72.72 0 00-1.44 0v.642a.72.72 0 00.719.721zm0 4.405a.72.72 0 00.721-.719v-.642a.72.72 0 10-1.44 0v.642a.72.72 0 00.719.719zm-2.523-2.524h.643a.72.72 0 000-1.44h-.643a.72.72 0 100 1.44zm4.406 0h.643a.72.72 0 000-1.44h-.643a.72.72 0 100 1.44zm-34.7-4.7a.72.72 0 00-.72.72v.642a.72.72 0 001.44 0v-.642a.72.72 0 00-.72-.72zm0 4.406a.72.72 0 00-.72.72v.642a.72.72 0 001.44 0v-.642a.72.72 0 00-.72-.72zm-1.882-1.881h-.642a.72.72 0 100 1.439h.642a.72.72 0 100-1.439zm4.407 1.439a.72.72 0 100-1.439h-.643a.72.72 0 100 1.439h.643z"></path><circle cx="47.213" cy="21.709" r=".92"></circle><circle cx="47.424" cy="30.334" r=".92"></circle><circle cx="5.033" cy="11.611" r=".92"></circle><path d="M19.612 29.966v.536a.514.514 0 101.028 0v-.536a.514.514 0 10-1.028 0zm-6.879 5.193v.759a.514.514 0 001.028 0v-.759a.515.515 0 00-.514-.515.516.516 0 00-.514.515zm-2.49 0v.759a.514.514 0 001.028 0v-.759a.515.515 0 00-.514-.515.516.516 0 00-.514.515zm5.189 0v.241a.514.514 0 001.028 0v-.241a.515.515 0 00-.514-.515.516.516 0 00-.514.515zm17.816 4.022c-.298.103-.597-.061-.717-.354l-.145-.354c-.047-.108-.073-.233.036-.275l3.179-1.313a.608.608 0 01.465 1.123l-2.828 1.173c-.001.002.013-.002.01 0z"></path><path d="M36.024 45.227c-.107.04-.237-.092-.279-.197l-1.68-4.067c-.11-.266-.013-.605.227-.744.022-.017.037-.024.064-.037l3.014-1.241c.997-.411 1.446-1.556 1.031-2.561a1.987 1.987 0 00-2.521-1.114l-.195.082-2.843 1.182a.583.583 0 01-.742-.339l-.147-.355c-.046-.106-.024-.219.086-.263l3.366-1.389c1.621-.668 3.441.143 4.114 1.759a3.21 3.21 0 01-1.592 4.11l-2.499 1.035 1.298 3.146c.125.3-.053.727-.347.847l-.355.146z"></path></svg>
</div>
<div class="col-md-12 dashboard-title">
<h3 class="pivx-bold-title-smaller"><span data-i18n="dCardFourTitle">Go to</span> <div data-i18n="dCardFourSubTitle">My Wallet</div></h3>
<p data-i18n="dCardFourDesc">This will import a PIVX wallet that you hold via it's private key, loading the address and pulling your existing balance, if any, from an explorer node.
<br>
<span style="opacity: 0.75; font-size: small;" data-i18n="dCardFourSubDesc">*Note: MPW developers can NOT access your wallet, this wallet runs purely in YOUR browser using JavaScript.</span>
</p>
</div>
<!-- IMPORT WALLET -->
<input class="hide-element" type="text" id="clipboard">
<div id='importWallet' style='display: none;'>
<input type="password" id='privateKey' placeholder="Seed Phrase, XPriv or WIF Private Key" oninput="onPrivateKeyChanged()">
<input hidden type="password" id='privateKeyPassword' placeholder="Password">
<button class="pivx-button-big" onclick="guiImportWallet()">
<span class="buttoni-icon"><i class="fas fa-file-upload fa-tiny-margin"></i></span>
<span class="buttoni-text" id="importWalletText" data-i18n="dCardFourButtonI" >Import Wallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
<!-- // IMPORT WALLET -->
<button class="pivx-button-big" id="accessWalletBtn" onclick="accessOrImportWallet()">
<span class="buttoni-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70"><path d="M3.497 25.717C1.401 25.588 0 23.847 0 21.753v-2.535c0-.775.149-1.593.925-1.593h22.719c2.173 0 3.941 1.861 3.941 4.034 0 2.174-1.769 3.988-3.941 3.988l-20.207.048c-.02 0 .08.023.06.022z"></path><path d="M5.229 69.625C4.455 69.625 4 68.494 4 67.719V38.661c0-1.911 1.447-3.731 3.258-3.989.175-.029.285-.047.483-.047h21.525c7.137 0 12.751-5.86 12.751-13.027 0-7.096-5.528-12.841-12.586-13.177-.002 0-.671.016-1.41.016l-20.335.066C5.529 8.373 4 6.652 4 4.558V2.023C4 1.247 4.407.625 5.183.625h24.059c11.57 0 20.654 9.546 20.706 21.104 0 9.378-6.307 17.727-15.337 20.311-1.622.445-3.122.705-4.735.778L12 42.842v22.485c0 2.156-2.141 4.298-4.235 4.298H5.229z"></path></svg></span>
<span class="buttoni-text" id='wToggle' data-i18n="dCardFourButtonA">Access My Wallet</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
<!-- // ACESSS WALLET -->
<br>
<br>
</div>
<!-- // KEYPAIR SECTION -->
<div id="StakingTab" class="tabcontent">
<!-- STAKING FEATURES -->
<p id="info" class="minor-notif-subtext"><span data-i18n="stakeTitle"><b>New Feature!</b></span><br><span data-i18n="stakeSubTitle">Please be aware MPW Cold Staking is a new, slightly experimental feature, it may be unstable, and is currently slow. Please have patience when using this feature, and wait for block confirmations before actions and balances are shown on-screen.</span></p>
<div class="add-frame">
<div class="staking-banner-top">
<div id="staking-rectangle" class="col-md-4">
<div id="pivx-price-box">
<div id="icon-box-piv">
<div id="piv-price" class="staking-piv-icon"></div>
</div>
<div id="piv-price-amount">
<p id="guiBalanceBoxStaking"><b id="guiBalanceStaking">~</b> <span id="guiBalanceStakingTicker">PIV</span></p>
</div>
</div>
<div id="staking-box">
<h3 id="stake-title" class="noselect"><span data-i18n="staking">Staking</span> <span id="balanceReloadStaking" class="reload noselect" onclick="refreshChainData()">↻</span></h3>
</div>
</div>
</div>
<br>
<div class="staking-banner-bottom">
<div class="stake-box large-box col-md-4">
<h5 id="availToDelegate" onclick="selectMaxBalance(domGuiDelegateAmount)" class="stake-balances ptr"><span data-i18n="available">Available</span>: 0 PIV</h5>
<textarea id="delegateAmount" class="stake-input form-control private-key-area"></textarea>
<div class="button-padd">
<button class="pivx-button-big" onclick="delegateGUI()">
<span class="buttoni-icon"><i class="far fa-snowflake fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="staking">Stake</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
<div class="stake-box large-box col-md-4">
<h5 id="availToUndelegate" onclick="selectMaxBalance(domGuiUndelegateAmount, true)" class="stake-balances ptr"><span data-i18n="staking">Staking</span>: 0 PIV</h5>
<textarea id="undelegateAmount" class="stake-input form-control private-key-area"></textarea>
<div class="button-padd">
<button class="pivx-button-big" onclick="undelegateGUI()">
<span class="buttoni-icon"><i class="far fa-snowflake fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="stakeUnstake">Unstake</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
</div>
<!-- STAKING FEATURES -->
<div class="staking-banner-bottom">
<div class="stake-box large-box col-md-4">
<div id="staking-rewards-title" class="staking-rewards-header">
<h5> <span data-i18n="staking">Staking</span> <span data-i18n="rewards">Rewards</span> </h5>
</div>
<div class="staking-rewards-list">
<div id="staking-rewards-content">
</div>
<button type="button" id="stakingLoadMore" onclick="getStakingRewards()">
<span class="buttoni-icon" id="stakingLoadMoreIcon"><i class="fas fa-sync fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="stakeLoadMore">Load more</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div id="Governance" class="tabcontent">
<div class="col-md-12 title-section float-left rm-pd">
<h3 class="pivx-bold-title center-text"> Governance</h3>
<p class="center-text">From this tab you can check the proposals and, if you have a masternode, be a part of the <b>DAO</b> and vote!</p>
</div>
<table id="proposalsTable" class="table table-hover table-dark bg-transparent" style="width:100%">
<thead>
<td class="text-center"> <b> Name </b> </td>
<td class="text-center"> <b> Payment </b> </td>
<td class="text-center"> <b> Votes </b> </td>
<td class="text-center"> <b> Vote </b> </td>
</thead>
<tbody id="proposalsTableBody" style="text-align: center; vertical-align: middle;">
</tbody>
</table>
</div>
<div id="Masternode" class="tabcontent">
<div class="col-md-12 title-section float-left rm-pd">
<h3 class="pivx-bold-title center-text"><span>Control your</span> Masternode</h3>
<p class="center-text">From this tab you can create and access one or more masternodes</p>
</div>
<div style='display: block;'>
<br>
<p id="mnTextErrors" class="center-text"></p>
</div>
<!-- IMPORT MASTERNODE -->
<div id='accessMasternode' class="dashboard-item" style='display:none; width:100%;'>
<div class="container">
<div id="accessMasternodeText"></div>
<br>
<input class="hide-element" type="text">
<div style='display: block;'>
<input type="password" id='mnPrivateKey' placeholder="Masternode Private Key">
<input type="text" id='mnIP' placeholder="Masternode ip address">
<select id='mnTxId' style="display: block;" placeholder="Masternode collateral tx" class="form-control">
</select>
<button class="pivx-button-big" onclick="importMasternode()">
<span class="buttoni-icon"><i class="fas fa-file-upload fa-tiny-margin"></i></span>
<span class="buttoni-text" id="importMnText">Access Masternode</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
</div>
<!-- // IMPORT MASTERNODE -->
<br>
<div id='createMasternode' class="dashboard-item" style='display:none; width:100%;'>
<div class="container" >
<h4>Create a masternode <small style="opacity: 0.75;">(10k PIV)</small></h4>
<input class="hide-element" type="text">
<div style='display: block;'>
<p>Choose your Masternode type</p>
<select id='mnCreateType' style="display: block; text-align: center;" placeholder="Masternode collateral tx" class="form-control">
<option value="VPS"> Self-hosted (a masternode server ran by you)</option>
<option value="Third Party"> Third Party (a masternode server ran by someone else)</option>
</select>
<br>
<br>
<button class="pivx-button-big" onclick="createMasternode()">
<span class="buttoni-icon"><i class="fas fa-file-upload fa-tiny-margin"></i></span>
<span class="buttoni-text" id="importMnText">Create Masternode</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
</div>
<div id="mnDashboard" class="staking-banner-bottom">
<div class="stake-box large-box col-md-4">
<h4 class="stake-balances" style="background-color: #2c0044;border-radius: 10px;">
Status <small id="mnProtocol" style="opacity: 0.5;"></small>
</h4>
<h2 id="mnStatus" class="stake-balances" style="overflow-wrap: anywhere;top: 50%;left: 50%;transform: translate(-50%, -50%);position: absolute;width: 100%;padding: 10px;" id="mnStatus">
</h2>
</div>
<div class="stake-box large-box col-md-4">
<h4 id="mnNetType" class="stake-balances" style="background-color: #2c0044;border-radius: 10px;">
</h4>
<h2 id="mnNetIP" class="stake-balances" style="overflow-wrap: anywhere;top: 50%;left: 50%;transform: translate(-50%, -50%);position: absolute;width: 100%;padding: 10px;font-family: mono !important;font-size: x-large;" id="mnStatus">
</h2>
</div>
<div class="stake-box large-box col-md-4">
<h4 class="stake-balances" style="background-color: #2c0044;border-radius: 10px;">
Last Seen
</h4>
<h2 id="mnLastSeen" class="stake-balances" style="overflow-wrap: anywhere;top: 50%;left: 50%;transform: translate(-50%, -50%);position: absolute;width: 100%;padding: 10px;font-size: xx-large;" id="mnStatus">
</h2>
</div>
</div>
<br>
<center id='controlMasternode' style='display:none; width:100%;'>
<button class="pivx-button-big" onclick="destroyMasternode()" style="margin: 20px; font-weight: 550 !important;">
<span class="buttoni-icon"><i class="fas fa-burn fa-tiny-margin"></i></span>
<span class="buttoni-text" id="importMnText">Destroy Masternode</span>
</button>
<button class="pivx-button-big" onclick="startMasternode(true)" style="margin: 20px; font-weight: 550 !important;">
<span class="buttoni-icon"><i class="fas fa-redo-alt fa-tiny-margin"></i></span>
<span class="buttoni-text" id="importMnText">Restart Masternode</span>
</button>
</center>
</div>
<div id="Transaction" class="tabcontent">
<!-- PIVX TITLE SECTION -->
<div class="col-md-12 title-section float-left rm-pd">
<h3 class="pivx-bold-title center-text"><span data-i18n="sendTitle">Create a</span> <div data-i18n="sendSubTitle">Transaction</div></h3>
</div>
<br>
<!-- // PIVX TITLE SECTION -->
<div id='sendNotice' class="col-md-12 float-left"></div>
<div class="col-md-12">
<p id="communication" class="center-text" data-i18n="sendShieldingWarning">Please <b>AVOID</b> sending to Shielded addresses using this wallet - this functionality is currently unsupported.</p>
</div>
<div class='max-width' style='clear:both;'>
<div id="simpleTransactionsDropdown" class="bold-trans" onclick='toggleDropDown("simpleTransactions")'><div data-i18n="sendSimpleTxTitle">Create Simple Transactions</div><span
style='float:right;'>▼</span></div>
<div id='simpleTransactions' style='display: block'>
<br>
<label data-i18n="sendSimpleTxAddress">Address</label><br>
<input class="center-text" style="width: 100%; font-family: monospace;" type="text" id="address1s">
<br>
<label><span data-i18n="amount">Amount</span> | <b onclick="selectMaxBalance(domValue1s)" style="opacity: 0.8;" class="ptr" data-i18n="sendSimpleTxAll">(Send All)</b></label><br>
<input class="center-text" type="text" id="value1s">
<div id="reqDescDisplay" style="display: none;">
<label data-i18n="sendSimpleTxDesc">Description (from the merchant)</label><br>
<input class="center-text" type="text" disabled id="reqDesc">
</div>
<br>
<div id='HumanReadable'></div>
<br>
<button class="pivx-button-big" onclick="createTxGUI()">
<span class="buttoni-icon"><i class="fas fa-paper-plane fa-tiny-margin"></i></span>
<span class="buttoni-text" id="genIt" data-i18n="sendSimpleTxButton">Send Transaction</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
<div id='transactionFinal'></div>
</div>
<br>
<div class='max-width' style='clear:both;'>
<div onclick='toggleDropDown("advTransactions")' class="bold-trans"><div data-i18n="sendManualTxTitle">Manual Transactions</div><span
style='float:right;'>▼</span></div>
<div id='advTransactions' style='display:none'>
<br>
<h3 data-i18n="sendManualTxInput">Inputs</h3>
<label data-i18n="sendManualTxTRXHash">Trx Hash</label><br>
<input type="text" id="prevTrxHash">
<label data-i18n="sendManualTxIndex">Index</label><br>
<input type="text" id="index">
<label data-i18n="sendManualTxScript">Script</label><br>
<input type="text" id="script"><br><br>
<h3 data-i18n="sendManualTxOutputs">Outputs</h3>
<label data-i18n="sendManualTxOutputAddr">Output Address 1</label><br>
<input type="text" id="address1">
<label data-i18n="amount">Amount</label><br>
<input type="text" id="value1">
<br />
<label data-i18n="sendManualTxOutputAddrTwo">Output address 2</label><br>
<input type="text" id="address2">
<label data-i18n="amount">Amount</label><br>
<input type="text" id="value2"><br><br>
<h3 data-i18n="sendManualTxWIFKey">WIF Key</h3>
<input type="text" id="wif">
<br /><br />
<p style="padding: 5px 0 15px;" data-i18n="sendManualTxWarning"><b>WARNING:</b> ANY FUNDS NOT ALLOCATED WILL BE USED AS FEES</p>
<button class="pivx-button-big" onclick="createRawTransaction()">
<span class="buttoni-icon"><i class="fas fa-paper-plane fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="sendManualTxButton">Create Raw Signed Transction</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
<br /><br /><br />
<h4 id="signed-raw" data-i18n="sendSignedRawTx">Signed Raw Transaction</h4>
<textarea rows="15" cols="70" id="rawTrx"></textarea>
<p><span data-i18n="sendSignedTutorial">Don't understand how this works?</span> <a target='_blank'
href='https://github.com/PIVX-Labs/MyPIVXWallet#transaction'><span data-i18n="sendSignedTutorialLink">Tutorial Here</span></a></p>
<p data-i18n="sendSignedTutorialAdvInfo">Advanced Details: <br>locktime is set to 0, sequence is set to max. SIGHASH_ALL option is chosen
for signing raw Transaction.</p>
</div>
</div>
</div>
<div id="Settings" class="tabcontent">
<label for="explorer" data-i18n="settingsExplorer">Choose an explorer:</label>
<br>
<select id="explorer" class="form-control" name="explorer">
<!-- Populated via JS at DOM load (settings.js) -->
</select>
<br>
<label for="translation" data-i18n="settingsLanguage">Choose an Language:</label>
<br>
<select id="translation" class="form-control" name="translation">
<!-- Populated via JS at DOM load (settings.js) -->
</select>
<br>
<label for="node" data-i18n="settingsPivxNode">Choose a PIVX node:</label>
<br>
<select id="node" class="form-control" name="node">
<!-- Populated via JS at DOM load (settings.js) -->
</select>
<br>
<label for="analytics" data-i18n="settingsAnalytics">Choose your analytics contribution level:</label>
<br>
<select id="analytics" class="form-control" name="analytics">
<!-- Populated via JS at DOM load (settings.js) -->
</select>
<div id='analyticsDescriptor'></div>
<br>
<button class="pivx-button-big" onclick="toggleDebug()">
<span class="buttoni-icon"><i class="fas fa-bug fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="settingsToggleDebug">Toggle Debug Mode</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
<button class="pivx-button-big" onclick="toggleTestnet()">
<span class="buttoni-icon"><i class="fas fa-network-wired fa-tiny-margin"></i></span>
<span class="buttoni-text" data-i18n="settingsToggleTestnet">Toggle Testnet Mode</span>
<span class="buttoni-arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M23.328 16.707L13.121 26.914a.5.5 0 01-.707 0l-2.828-2.828a.5.5 0 010-.707L16.964 16 9.586 8.621a.5.5 0 010-.707l2.828-2.828a.5.5 0 01.707 0l10.207 10.207a1 1 0 010 1.414z"></path></svg></span>
</button>
</div>
</div>
</div>
</div>
</div>
<!--
Alert
-->
<div class="alertPositioning"></div>
<footer id="foot">
<div class="footer">
<div><span> © MIT 2022 </span> - <span data-i18n="footerBuiltWithPivxLabs">Built with 💜 by PIVX Labs</span> - <b style='cursor:pointer' onclick='openDonatePage()' data-i18n="footerDonateLink">Donate!</b><br><a href="https://github.com/PIVX-Labs/MyPIVXWallet" data-i18n="footerGithubLink">MyPIVXWallet</a></div>
</div>
</footer>
</div>
<!-- Load frontend-level components -->
<script type="text/javascript" src="scripts/settings.js"></script>
<script type="text/javascript" src="scripts/misc.js"></script>
<script type="text/javascript" src="scripts/wallet.js"></script>
<script type="text/javascript" src="scripts/network.js"></script>
<script type="text/javascript" src="scripts/i18n.js"></script>
<script type="text/javascript" src="scripts/mempool.js"></script>
<script>
// TRANSLATION
//Create an object of objects filled with all the translations
var translatableLanguages = {
"en": en_translation,
"uwu": uwu_translation
}
localTranslation = localStorage.getItem('translation')
// Check if set in local storage
if(localTranslation != null){
translation = translatableLanguages[localTranslation]
}else{
// Check if we support the user's browser locale
if (arrActiveLangs.includes(strLang)) {
translation = translatableLanguages[strLang]
}else{
// Default to EN if the locale isn't supported yet
console.log("i18n: Your language (" + strLang + ") is not supported yet, if you'd like to contribute translations (for rewards!) contact us on GitHub or Discord!")
translation = en_translation
}
}
translate(translation);
// WALLET STATE DATA
const mempool = new Mempool();
let arrRewards = [];
let cachedBlockCount = 0;
// PIVX Labs' Cold Pool
let cachedColdStakeAddr = "SdgQDpS8jDRJDX8yK8m9KnTMarsE84zdsy";
// Cached DOM elements
const domStart = document.getElementById("start");
const domNavbarToggler = document.getElementById("navbarToggler");
const domGuiStaking = document.getElementById('guiStaking');
const domGuiWallet = document.getElementById('guiWallet');
const domGuiBalance = document.getElementById("guiBalance");
const domGuiBalanceTicker = document.getElementById("guiBalanceTicker");
const domGuiBalanceBox = document.getElementById("guiBalanceBox");
const domBalanceReload = document.getElementById("balanceReload");
const domBalanceReloadStaking = document.getElementById("balanceReloadStaking");
const domGuiBalanceStaking = document.getElementById("guiBalanceStaking");
const domGuiBalanceStakingTicker = document.getElementById("guiBalanceStakingTicker");
const domGuiStakingLoadMore = document.getElementById("stakingLoadMore");
const domGuiStakingLoadMoreIcon = document.getElementById("stakingLoadMoreIcon");
const domGuiBalanceBoxStaking = document.getElementById("guiBalanceBoxStaking");
const domGuiDelegateAmount = document.getElementById('delegateAmount');
const domGuiUndelegateAmount = document.getElementById('undelegateAmount');
const domTxTab = document.getElementById("txTab");
const domStakeTab = document.getElementById("stakeTab");
const domsendNotice = document.getElementById("sendNotice");
const domSimpleTXs = document.getElementById("simpleTransactions");
const domSimpleTXsDropdown = document.getElementById("simpleTransactionsDropdown");
const domAddress1s = document.getElementById("address1s");
const domValue1s = document.getElementById("value1s");
const domGuiViewKey = document.getElementById('guiViewKey');
const domModalQR = document.getElementById('ModalQR');
const domModalQrLabel = document.getElementById('ModalQRLabel');
const domPrefix = document.getElementById('prefix');
const domPrefixNetwork = document.getElementById('prefixNetwork');
const domWalletToggle = document.getElementById("wToggle");
const domGenerateWallet = document.getElementById('generateWallet');
const domGenVanityWallet = document.getElementById('generateVanityWallet');
const domGenHardwareWallet = document.getElementById('generateHardwareWallet');
//GOVERNANCE ELEMENTS
const domGovProposalsTable = document.getElementById('proposalsTable');
const domGovProposalsTableBody = document.getElementById('proposalsTableBody');
//MASTERNODE ELEMENTS
const domCreateMasternode = document.getElementById('createMasternode');
const domControlMasternode = document.getElementById('controlMasternode')
const domAccessMasternode = document.getElementById('accessMasternode');
const domMnAccessMasternodeText = document.getElementById('accessMasternodeText');
const domMnCreateType = document.getElementById('mnCreateType');
const domMnTextErrors = document.getElementById('mnTextErrors');
const domMnIP = document.getElementById('mnIP');
const domMnTxId = document.getElementById('mnTxId');
const domMnPrivateKey = document.getElementById('mnPrivateKey');
const domMnDashboard = document.getElementById('mnDashboard');
const domMnProtocol = document.getElementById('mnProtocol');
const domMnStatus = document.getElementById('mnStatus');
const domMnNetType = document.getElementById('mnNetType');
const domMnNetIP = document.getElementById('mnNetIP');
const domMnLastSeen = document.getElementById('mnLastSeen');