1

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

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

truffle-config.js:

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

Error:

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 ...? – smarx 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
1

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

https://github.com/trufflesuite/truffle/issues/890

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.