You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// validator secrets, should not belong to any validators keys. can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used,
78
+
// validator secrets, should not belong to any validators keys.
79
+
// can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used,
79
80
// can ne generated with BithompXRPL.Validator.generateSecrets() or by generateSeed from ripple-keypairs
80
81
constvk= {
81
82
privateKey:"p__________________________",
82
83
publicKey:"ED________________________________",
83
84
};
84
85
85
-
// signing secrets, should not belong to any validators keys. can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used
86
+
// signing secrets, should not belong to any validators keys.
87
+
// can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used,
86
88
// can ne generated with BithompXRPL.Validator.generateSecrets() or by generateSeed from ripple-keypairs
87
89
constsk= {
88
90
privateKey:"p__________________________",
89
91
publicKey:"ED_______________________________",
90
92
};
91
93
92
-
// validator list, public addresses, they have to be available on the ledger for accessing to manifest data (it will be stored in a blob), the address should start on letter `n`
_Setup connection_, it is required to get validators details from the ledger.
118
+
119
+
```JS
120
+
constBithompXRPL=require("@bithomp/xrpl-api");
121
+
// setup connection
122
+
constconfig= [
123
+
{
124
+
// this connection will be used to get validators details from the ledger, use web socket with connection to network you are building list for (mainnet, testnet, devnet, etc.)
125
+
"url":"wss://xrplcluster.com",
126
+
"connectionTimeout":10000
127
+
}
128
+
];
129
+
BithompXRPL.Client.setup(config);
130
+
131
+
// connect
132
+
awaitBithompXRPL.Client.connect();
133
+
134
+
// validator secrets, should not belong to any validators keys.
135
+
// can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used,
136
+
// can ne generated with BithompXRPL.Validator.generateSecrets() or by generateSeed from ripple-keypairs
137
+
constvk= {
138
+
privateKey:"p__________________________",
139
+
publicKey:"ED________________________________",
140
+
};
141
+
142
+
// signing secrets, should not belong to any validators keys.
143
+
// can be any ed25519 (publicKey starts on `ED`) or secp256k1 could be used,
144
+
// can ne generated with BithompXRPL.Validator.generateSecrets() or by generateSeed from ripple-keypairs
145
+
constsk= {
146
+
privateKey:"p__________________________",
147
+
publicKey:"ED_______________________________",
148
+
};
149
+
150
+
// validator list, public addresses, they have to be available on the ledger
151
+
// for accessing to manifest data (it will be stored in a blob),
// NOTE: This function is not minting NFTokenID, it is just encoding it from the data provided, can be used if you want to test something, check if the NFTokenID is valid, or predict the NFTokenID before minting
207
+
// NOTE: This function is not minting NFTokenID, it is just encoding it from the data provided,
208
+
// can be used if you want to test something, check if the NFTokenID is valid, or predict the NFTokenID before minting
0 commit comments