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)
2
  • 1
    Just a guess, but is Truffle case sensitive here? Try --network=infuraRinkeby ...?
    – user19510
    Commented Aug 16, 2018 at 10:39
  • I changed it. If you provide a wrong network name you will get a different error message.
    – MarcS82
    Commented Aug 16, 2018 at 10:43

2 Answers 2

1

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

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

0

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 and acknowledge you have read our privacy policy.

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