How to deploy contract by signing with local private key #6073
Unanswered
fjchen7
asked this question in
General Q&A
Replies: 1 comment
-
Hi @fjchen7 You can find all the required steps here -> https://docs.infura.io/tutorials/ethereum/deploy-a-contract-using-web3.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my
truffle-config.js
.Here is my
1_deploy_contracts.js
When I run
npx truffle migrate --verbose-rpc
with the above configuration, the log printseth_sendTransaction
, which seems that tx is still signed by account in node rather than local private key.I want to deploy a contract by local private key. As far as I know, I have to construct a signed transaction with my local private key, and send it by RPC
eth_sendRawTransaction
provided by node. How can I do that? Very appreciate if some could give a hint.Beta Was this translation helpful? Give feedback.
All reactions