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.

New contributor
cecelia Shalini D'souza is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

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.

  • 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.