How to add accounts to infura provider? How can I get that account in Remix when deployment environment is choosen to be web3?

How can I manually create Account and add it to infura?
here is my code git link: https://github.com/NagatoPeinI1/testInfura.git
if you see the

ganacheCompileandDeply.js

works fine and I get the value of

defaultAccount

.
But when I run

infuraCompileAndDeploy.js

I’m getting undefined for

defaultAccount
I have even tried adding the account to my wallet via

// const signer = web3.eth.accounts.privateKeyToAccount( // process.env.SIGNER_PRIVATE_KEY // ); // console.log(" signer: ",signer) // web3.eth.accounts.wallet.add(signer)

1 Like

Hi @shalabh

Could you please share with us the exact steps for reproducing the error you encountered?

1 Like

Please find the details:
[Which account to add for deploying smart contract via infura?]

1 Like