MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / createRandom

Method createRandom

lib.commonjs/wallet/wallet.js:129–135  ·  view source on GitHub ↗

* Creates a new random [[HDNodeWallet]] using the available * [cryptographic random source](randomBytes). * * If there is no crytographic random source, this will throw.

(provider)

Source from the content-addressed store, hash-verified

127 * If there is no crytographic random source, this will throw.
128 */
129 static createRandom(provider) {
130 const wallet = hdwallet_js_1.HDNodeWallet.createRandom();
131 if (provider) {
132 return wallet.connect(provider);
133 }
134 return wallet;
135 }
136 /**
137 * Creates a [[HDNodeWallet]] for %%phrase%%.
138 */

Callers 4

test-wallet.jsFile · 0.45

Calls 1

connectMethod · 0.65

Tested by

no test coverage detected