UNPKG
walletcheck
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
check
github.com/Quinby2001/ercwallet-check
Quinby2001/ercwallet-check
walletcheck
/
walletGenerator.js
12 lines
(10 loc)
•
321 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// walletGenerator.js
function
generateWalletAddress
(
) {
const
prefix =
"0x"
;
let
address = prefix;
for
(
let
i =
0
; i <
40
; i++) { address +=
Math
.
floor
(
Math
.
random
() *
16
).
toString
(
16
);
// 生成随机十六进制数字
}
return
address; }
module
.
exports
= generateWalletAddress;