-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerateMetadata.js
More file actions
53 lines (36 loc) · 899 Bytes
/
Copy pathgenerateMetadata.js
File metadata and controls
53 lines (36 loc) · 899 Bytes
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
const fs = require("fs");
for (let i = 0; i < 1000; i++) {
const metadata = {
name:
`ARCora Early Access Badge #${i}`,
description:
"Exclusive badge for early ARCora users.",
image:
"https://gateway.pinata.cloud/ipfs/bafybeidn35bgjvbbss7vwcu6hfwibumgvkd46uonkiq53eqwbs4hmcdo24",
attributes: [
{
trait_type: "Tier",
value: "Early Access"
},
{
trait_type: "Collection",
value: "Genesis"
},
{
trait_type: "Edition",
value: i
}
]
};
fs.writeFileSync(
`metadata/${i}.json`,
JSON.stringify(
metadata,
null,
2
)
);
}
console.log(
"1000 metadata berhasil dibuat!"
);