Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
914 views

Is it possible that Ganache can handle a private key without an "0x" prefix, but Parity cannot?

I am trying to sign and send a transaction as follows: let signedTx = await web3.eth.accounts.signTransaction(options, PRIVATE_KEY); let txReceipt = await web3.eth.sendSignedTransaction(signedTx....
goodvibration's user avatar
0 votes
1 answer
197 views

Using web3js apis for ethereum transactions

I want to use Web3.js APIs to create an Ethereum transaction from an address (not a smart contract) to another address using sendTransaction method (https://web3js.readthedocs.io/en/1.0/web3-eth.html#...
Gagan's user avatar
  • 433
0 votes
2 answers
343 views

Unable to send ether to account

I am trying to send ehter using this code web3.eth.accounts.wallet.add(privateKey); web3.eth.sendTransaction({ to:someAddress, from:onwer, value:amount*1, ...
Albert's user avatar
  • 39
1 vote
3 answers
5k views

How to build and sign a transaction to deploy a contract

I am trying to generate a transaction to deploy a smart contract on the chain and to sign it with web3js. My problem is that I have no idea how to build the transaction object needed for the ...
Itération 122442's user avatar