LoginSignup
2
0

More than 3 years have passed since last update.

HDWalletProviderでmnemonicの代わりに秘密鍵を利用する

Posted at

結論

単純に mnemonic の代わりに引数に秘密鍵を渡す。

const pkey = "12345.......89";
new HDWalletProvider(pkey, "https://ropsten.infura.io/v3/xxxxxxx");

メモ

Instead of a mnemonic, you can alternatively provide a private key or array of private keys as the first parameter.

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0