I have created a sample token contract (https://www.ethereum.org/token#minimum-viable-token) with balanceOf and transfer functions. When I use eth.sendTransaction to transfer tokens from one account to another, everything works as expected. When I use eth.sendRawTransaction (by signing offline with private key of sender) for the same transaction, the transaction gets mined but surprisingly the tokens are not transferred.

I have logged both the transactions using eth.getTransaction(), I am unable to find the issue.

enter image description here

1 Answer 1


Look at the gas value in both the transactions. That could be the culprit. Make sure to put the appropriate gasLimit while generating signed transaction for sendRawTransaction.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.