1

I tried to deploy my contract on Ropsten TestNet with infura and web3.js, however when I used some functions it returned 405 error. I notice that maybe I could not use web3.eth.getTransaction() when infura, however when I use following script <script src="./node_modules/web3/dist/web3.min.js"></script> this function is called several times.

How can Iavoid the error, do I need to modity web3.min.js (https://github.com/ethereum/web3.js/blob/develop/dist/web3.min.js)? Or is there any way to replace infura?

1

A 405 means that the underlying JSON-RPC method is not allowed. Most of the methods that are not allowed do not make sense for a service like Infura (e.g. we don't store keys on our servers).

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.