Discussions

Ask a Question

alchemy.ws.on does not receive more transactions after a couple of hours

Hi there, I've been using Alchemy to listen to events on a specific contract but after a couple of hours it dies and I don't see a way to at least be some kind of error or warning so I can reconnect. The code I'm using is the following: alchemy.ws.on( { method: AlchemySubscription.PENDING_TRANSACTIONS, // "alchemy_pendingTransactions", toAddress: contractAddress }, (res) => { }); Is there any way to do this? For instance, something like when we connect to the mempool through a node: const customWsProvider = new ethers.providers.WebSocketProvider(nodeUrl); customWsProvider._websocket.on("close", async (code) => { }); Thanks. Best regards, Hugo

problem with alchemy.ws.on(topicSets, (log, e) => console.log(log, e))

Hi guys, I'm trying to listening to a contract event, but, when the event occurs, the e parameter result as undefined and I don't know how to get the parameters of the emitted event. Do you know how to handle it? Thanks :)
ANSWERED

Inquiry Regarding Alchemy GraphQL Webhooks Service

Hello, I recently tried to use the Alchemy GraphQL Webhooks service to listen to contract events. However, when attempting to create a webhook following the provided documentation, I encountered an error message stating that "GraphQL webhooks are currently in beta". I am very interested in using this service to achieve my desired functionality, but I am unsure about the beta status of the service. Can the Alchemy team provide more information about the beta status of this service, such as when it will be released as a stable version? Additionally, are there any workarounds or temporary solutions that would allow me to use the service in the meantime? If anyone else has encountered a similar issue or has any solutions, please leave a comment in the section below so we can discuss and help each other out. Thank you!
ANSWERED
ANSWERED
ANSWERED
ANSWERED

nft pagination

How can i paginate nfts on sdk ? if i use this alchemy.nft.getNftsForContract("0xxxxxxxxxx", {omitMetadata:false, startToken: '0', limit: 20}); it still gets 100 Nfts it works well with axios but with sdk it is not working.
ANSWERED

Dark theme will be added?

Dark theme will be added?