Discussions
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
Posted by Hugo Mag about 1 month ago
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 :)
Posted by Alex Coop about 1 month ago
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!
Posted by Russ about 1 month ago
429 error
429: Your app has exceeded its concurrent requests capacity. If you have retries enabled, you can safely ignore this message. If not, check out https://docs.alchemy.com/reference/throughput. Reach out to us if you'd like to increase your limits: https://dashboard.alchemyapi.io/support
Posted by allenwu about 1 month ago
how to view NFT IPFS info through getNFTs API ?
I am currently receiving NFT information through the getNFTs function.
However, the token uri received through the alchemy API is different from the actual token uri.
the NFT token uri obtained through smart contract is the ipfs hash value.
However, the token uri value given by alchemy is in the form of http uri(ex. http://api.elonmusknfts.xyz/ipfs/5).
I do not have access to uri such as "http://api.elonmusknfts.xyz/ipfs/5" in my current network state.
how can I actually see the NFT uploaded to IPFS through the API provided by alchemy?
Posted by Sean Lee about 1 month ago
Can we get owned ERC155 NFTs of a smart contract
Imagine we have an ERC1155 smart contract. We mint some tokens, and as a result, the token Id increases. Then we transfer some of its tokens to another smart contract capable of receiving ERC1155 tokens. How can we determine the ERC1155 balance of the second smart contract ( to which we sent tokens )?
Alchemy already provides an API for getting all NFTs of an address, but its input cannot be a contract's address. So what other solutions do I have?
Many thanks for considering my request.
Posted by Sina Rahimi about 1 month ago
Delete account
Hi, creating an alchemy account was a mistake. How can I delete it? Thank you.
Posted by Yair about 1 month ago
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.
Posted by Noman Malik about 1 month ago
Limits appplying to apps
Hi.
On free-tier I can have up to 5 apps and on growth - up to 15.
How compute limits CUPS and CUPM will be splitted between apps?
Every app is allowed to use up to 330 CUPS or all 5 apps must use not more than 330 CUPS for free-tier?
Posted by Alex about 1 month ago
Dark theme will be added?
Dark theme will be added?
Posted by Foo Barqwqw about 1 month ago