New answers tagged

1

If you are using web3, you can encode it with: web3.eth.abi.encodeParamter('string', <lorem_ipsum_text>) You can then decode the output with the following: web3.eth.abi.decodeParamter('string', <lorem_ipsum_encoded_string>) Encoding is based on the Contract ABI Specification. It is hard to get through, but these docs have all the answers to ...


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