I would like to debug a transaction using truffle and infura.

truffle debug --network=infurarinkeby 0x7...


    infurarinkeby: {
        provider: function() {
            return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/<my api key>")
        network_id: 4,
        gas: 6e6,
        gasPrice: 5e10,
        from: "0xc491c11f6c2e031e99d7c93300baced83019041d"


Could not connect to your Ethereum client. Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle.js)
  • 1
    Just a guess, but is Truffle case sensitive here? Try --network=infuraRinkeby ...?
    – user19510
    Aug 16 '18 at 10:39
  • I changed it. If you provide a wrong network name you will get a different error message.
    – MarcS82
    Aug 16 '18 at 10:43

It seems the debug API isn't supported from infura:



Make sure you're using your Infura Project ID and not the Project Secret.

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.