So i am trying to publish a smart contract using a guide.


When i am trying to deploy to livenet it gives me the following error, it will deploy to remixes VM test net tho.

creation of Legendary errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{\"value\":{\"code\":-32603,\"data\":{\"code\":-32000,\"message\":\"transaction underpriced\"}}}'","id":8631497957641221}


Metamask error

  • What network are you deploying on? Are you deploying through Injected provider - MetaMask? I just deployed the contract on Goerli and it's 749,390 gas for the legendary contract deployment transaction.
    – Ake
    Oct 25 at 11:34
  • I am deploying on BEP20 Using Metamask, I have tried larger gas fee on the remix interface but this does not change what metamask tries to charge me for gas.
    – Jim Mike
    Oct 25 at 11:37
  • I have just added an image of my screen,
    – Jim Mike
    Oct 25 at 11:38
  • 1
    When you compile the contract (assuming you have compiled legendary) and before you deploy, make sure you have there in the CONTRACT field on your screen selected Legendary.sol and not IBEP20.sol. Currently you are trying to deploy a different contract.
    – Ake
    Oct 25 at 11:44
  • I had changed the name to it was deploying IBEP20.sol, But i have just tested again using legendary.sol i compiled it and tried to deploy with the same error. I have attached a new screenshot above including the metamask error received.
    – Jim Mike
    Oct 25 at 11:50


Your Answer

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

Browse other questions tagged or ask your own question.