New answers tagged

0

Of course you can sign a transaction with any private key that you want. But when you finally execute it, the gas required for this transaction (as well as the amount of ether that you have set in the value field) will be taken from the account corresponding with that key. And if you just choose a random key, then this account will have 0 Ether with a ...


0

This code does sign the transaction, but how do I verify that the transaction has been correctly signed? How is it possible to verify that the signature is correct? web3 has an estimateGas method you can use to estimate the gas required for the transaction and If signature is incorrect, that means the transaction is going to fail then it will simply ...


Top 50 recent answers are included