You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
When decoding the raw transaction , the from value is different than the address of the given path .
Resulting in an error when calling web3.eth.sendSignedTransaction
(Returned error: insufficient funds for gas * price + value)
Because the signed address is else.
const txParams = {
gasPrice: price,
gasLimit: limit,
to: ADDR,
data : data1,
value: '0x00',
nonce: web3.utils.toHex(count)
};
const txHex = new Transaction(txParams).serialize().toString("hex");
const result = await appeth.signTransaction("44'/60'/0'/0/0", txHex);
txParams.r = '0x'+result.r;
txParams.s = '0x'+result.s;
txParams.v = '0x'+result.v;
const tx2 = new Transaction(txParams);
var serializedTx = '0x' + tx2.serialize().toString('hex');
let sender = web3.eth.accounts.recoverTransaction(serializedTx);
The text was updated successfully, but these errors were encountered:
When decoding the raw transaction , the from value is different than the address of the given path .
Resulting in an error when calling web3.eth.sendSignedTransaction
(Returned error: insufficient funds for gas * price + value)
Because the signed address is else.
The text was updated successfully, but these errors were encountered: