question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on createBuyOrder : eth_sendTransaction does not exist

See original GitHub issue

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.```

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:17

github_iconTop GitHub Comments

1reaction
EmrahSignorinicommented, Jan 23, 2022
let provider = new HDWalletProvider({
    mnemonic: {
        phrase: "test test test test test test test test test test test test"
    },
    providerOrUrl: 'https://rinkeby.infura.io/v3/YOUR_INFURA_APIKEY'
});

const seaport = new OpenSeaPort(provider, {
    networkName: Network.Rinkeby,
    apiKey: OPENSEA_APIKEY
});

This one worked for me on testnets, thank you @wahab054

1reaction
wahab054commented, Dec 10, 2021

@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:

let provider = new HDWalletProvider({
	mnemonic: {
	  phrase: <mnemonicPhrase>
	},
	providerOrUrl: "https://mainnet.infura.io/v3/<projectId>"
});
const web3 = new Web3(provider);
const seaport = new OpenSeaPort(web3.provider, {
	networkName: Network.Main,
	apiKey: <key>
})`
Read more comments on GitHub >

github_iconTop Results From Across the Web

The method eth_sendTransaction does not exist/is not available
I am trying to send the args on function from owner account but getting Returned error. I am using web3 1.0 .
Read more >
Error: The method eth_sendTransaction does not exist/is not ...
This is a sample of smart contract function execution. As we know it's not possible to make a transaction on the Ethereum network...
Read more >
Returned error: The method eth_sendTransaction does not ...
I figured out the issue. It was indeed having 2 web3 objects created, one with Metamask, the other through the Web3 package.
Read more >
Error on createBuyOrder : eth_sendTransaction does not exist
Coming soon: A brand new website interface for an even better experience!
Read more >
Deploy failed with method eth_sendTransaction does not exist
Hi @abcoathup, I am trying to create nft token when I try to deploy it I am getting an error. And I referred...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found