-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendSignedTransaction is not working #1134
Comments
I have found a temporary solution. I unlock the account, do the transaction and then I lock it again. web3.eth.personal.unlockAccount(admin, "p").then((suc) =>{
start.send(tx).then((receipt) =>{
console.log(receipt);
web3.eth.personal.lockAccount(admin, "p").then((suc) => {
resolve();
});
}, (error) =>{
console.log(error);
web3.eth.personal.lockAccount(admin, "p").then((suc) =>{
reject(500);
});
});
}, (error) =>{
reject(500);
}); |
I have the same error! |
You must sign the directives, you may need to visit the wiki. |
Hello @Wullee , What does it mean "sign the directives"? Transaction is signed in code under - as you may see. |
I'm using the documentation from ReadTheDocs |
Anyone found a solution for this? If i use testrpc and add chainId to the transaction object it signs well, but with geth it does not :( |
Can confirm the same, I made a private chain with puppeth, and if I change the chain_id to 3 for example, it works fine. If I try to use chain_id 1337 it fails. Edit: Just tested 88 it also works, so this has something to do with how big the chain_id is. |
web3.eth.sendSignedTransaction is not a function getting this error can anyone help me on this please.... |
Good morning, |
When I call sendSignedTransaction it throws:
invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type hexutil.Bytes
. I'm using geth with a private chain (with the -dev flag). The web3.js was installed with npm and the version is: ^1.0.0-beta.24.I get the private key from the decrypt method and using the JSON from the keystore. start is the contract function that I'm calling. It has one argument (an int) and it is not payable. I think there might something wrong with the rawTransaction that is returned with the signTransaction method.
The text was updated successfully, but these errors were encountered: