addListener on openseaSDK not firing
See original GitHub issueI’m using the openseaSDK and using the addListener to listen to these events:
- transaction gets created
- transaction fails
- transaction gets denied
I can’t get the listeners to fire, any ideas why this might be happening?
const provider = new HDWalletProvider(
walletPrivateKey,
envConfig.alchemyProvider
);
const openseaSDK = new OpenSeaSDK(provider, {
networkName: envConfig.openseaNetworkName,
apiKey: envConfig.openseaApiKey
});
openseaSDK.addListener(EventType.TransactionCreated,async ({ transactionHash, event }) => {
console.log(transactionHash);
});
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5
Top Results From Across the Web
addEventListener drop not firing - Stack Overflow
I am trying to attach a drop event to an HTML div: document.getElementById('sub-main').addEventListener("drop", ...
Read more >Opensea-js-darwin NPM
No more needing to worry about the exchange rate: ... Events are fired whenever transactions or orders are being created, ... addListener(EventType.
Read more >niehongbo/opensea-js - Gitee
Events are fired whenever transactions or orders are being created, and when transactions return receipts from recently mined blocks on the Ethereum blockchain....
Read more >Why is my .addEventListener not working for all elements of ...
addEventListener not working for all elements of the same class? (Basic Question). I want to create and register a JavaScript event handler ...
Read more >Unable to create sell order with OpenSea SDK, but no errors ...
I'm learning how to use the OpenSea SDK in Node.js (found here) by referring to its example OpenSea Creatures. The SDK links to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This just return events from your accounts.
@neocho Here is my createSellOrder function This is how I use addListener: What is the correct way to use the listener?