woodser / monero-ts

TypeScript library for using Monero
http://woodser.github.io/monero-ts/typedocs
MIT License
210 stars 71 forks source link

createWalletKeys #210

Closed znwhite closed 4 months ago

znwhite commented 4 months ago

Update: user error, thanks

woodser commented 4 months ago

Yeah you can omit the seed and it will generate a new one.

Or you can provide a seed to restore from, using the syntax seed: .... Your syntax above is incorrect, because it only provides seed:

let wallet = await moneroTs.createWalletKeys({
    password: "abc123",
    networkType: moneroTs.MoneroNetworkType.MAINNET,
    seed <--- should be "seed: ..."
  });