I have deployed a smart contract in Remix IDE using MetaMask and test rpc. I got the below error:

Error: Error: [ethjs-rpc] rpc error with payload {"id":6223335088050,"jsonrpc":"2.0","params":["0xf9061.......f2b"],"method":"eth_sendRawTransaction"} Error: transaction underpriced

So, please give me solution to resolve this issue.


[ethjs-rpc] rpc error with payload in Solidity 0.5.0 happens if the passed parameters to the contract is empty, hence from DApp console log all parameters and see if any values are being passed as empty or null. Once you address the empty values to some concrete values rpc error will go way and transaction will be success.

| improve this answer | |

I have come across the same error. After removing and re-installing the meta mask has been fixed this problem for me.

| improve this answer | |

I kept getting this error some time before when metamask by default set gas price to 0. Took some time to notice it, but changing it from 0 to anything else fixed the problem.

| improve this answer | |
  • how did you changed it – lokesh kumar Aug 12 '18 at 5:38
  • Before sending tx you can set gas limit in MetaMask. – Maxpeinas Aug 13 '18 at 6:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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