opensea-js: Error on createBuyOrder : eth_sendTransaction does not exist
How to fix The method eth_sendTransaction does not exist/is not available issue.
(node:11020) UnhandledPromiseRejectionWarning: Error: The method eth_sendTransaction does not exist/is not available
at Object.InvalidResponse (C:\laragon\www\nfts\node_modules\opensea-js\node_modules\web3\lib\web3\errors.js:38:16)
at C:\laragon\www\nfts\node_modules\opensea-js\node_modules\web3\lib\web3\requestmanager.js:86:36
at exports.XMLHttpRequest.request.onreadystatechange (C:\laragon\www\nfts\node_modules\web3-providers-http\lib\index.js:98:13)
at exports.XMLHttpRequest.dispatchEvent (C:\laragon\www\nfts\node_modules\xmlhttprequest\lib\XMLHttpRequest.js:591:25)
at setState (C:\laragon\www\nfts\node_modules\xmlhttprequest\lib\XMLHttpRequest.js:610:14)
at IncomingMessage.<anonymous> (C:\laragon\www\nfts\node_modules\xmlhttprequest\lib\XMLHttpRequest.js:447:13)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:11020) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11020) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 18
This one worked for me on testnets, thank you @wahab054
@goodaytar I don’t understand from the documentation how to create an OpenSeaPort with the HDWalletProvider. Can you please help out? Here’s my sample code: