Get chain for collection
Is there a way to get the chain that a collection (or an asset from a collection) belongs to?
meaning i have the contract address of the collection, and i want an output like "Ethereum", or "Polygon" etc
Posted by Andrei 3 months ago
Commission on trade transactions in a Token Swap Dapp With 0x API
In tutorial: <https://docs.alchemy.com/docs/how-to-build-a-token-swap-dapp-with-0x-api>
I have not found how to add a commission on each transaction. It is possible to do this with using the 0x swap API endpoint?
Posted by Alan 3 months ago
Get NFT transactions
Hi, is it possible to get the transactions for an individual NFT rather than a contract using getAssetTransfers. It does not seem to return a value for tokenId or erc721TokenId. This function seems to only return all transactions for a collection (contract).
Posted by Derek Dempsey 3 months ago
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 3 months 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 3 months 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 4 months 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 4 months ago