Explorer-backend and frontend help

Okay, I'm new to all this so please bear with me.. I'm setting up the explorer-backend in support of my project. The reason I believe I need it is to take snapshots for airdrops to NFT holders. Problem is now that I've got chain-grabber syncing I'm not sure where I go from here. Do I need to install the explorer-frontend as well? Would anyone be able to explain how to actually take a snapshot of the chain and how I can isolate the wallets that hold NFTs from a specific project?
17 Replies
MGpai
MGpai•4y ago
you don't need to setup your own explorer for this I would just make api requests to track down who holds what
No_Rav3n
No_Rav3nOP•4y ago
Okay, how would I go about doing that? Total noob here when it comes to this stuff. I've only ever really done server admin type stuff... Ironically I also have a question for you in regard to your bulk minter 😅 Would it be with the Token search function I'm seeing on the api site?
MGpai
MGpai•4y ago
what is your backend code written in?
No_Rav3n
No_Rav3nOP•4y ago
I used the explorer-backend repo on github so scala I believe
MGpai
MGpai•4y ago
no like to call api what language are you using?
No_Rav3n
No_Rav3nOP•4y ago
Ah, I was following an ergotutorials video to try and figure it was using java
MGpai
MGpai•4y ago
so you can go to gql https://gql.ergoplatform.com/ and make this query
query Query($tokenId: String) {
boxes(tokenId: $tokenId) {
address
}
}
query Query($tokenId: String) {
boxes(tokenId: $tokenId) {
address
}
}
and you will see all address that held your token
MGpai
MGpai•4y ago
No description
MGpai
MGpai•4y ago
you can also go here
https://api.ergoplatform.com/api/v1/boxes/unspent/byTokenId/{tokenID}
https://api.ergoplatform.com/api/v1/boxes/unspent/byTokenId/{tokenID}
and it will show the box the token is in currently and you can also see address there
No_Rav3n
No_Rav3nOP•4y ago
Okay, am I able to input multiple token IDs with this?
MGpai
MGpai•4y ago
no
No_Rav3n
No_Rav3nOP•4y ago
@MGpai I can't send messages in that channel. I have it set up with multiple queries in one file but they don't all run at the same time. @Sepehr (Simon), do you have an example of what the syntax is to run a batch query?
Sepehr
Sepehr•4y ago
This is one example, you can batch multiple Ids and get all of them in one query.
No description
No_Rav3n
No_Rav3nOP•4y ago
Thank you!
nopalitos
nopalitos•4y ago
If this is not the appropriate place for this question let me know. I am working on a website that has to display the balance of several wallets. I didn't know if I needed my own ergo node to do this but I figure it would probably be more reliable if I did. What I want to know is how to request the balance of a wallet from my node?
nopalitos
nopalitos•4y ago
It worked thanks. Is it possible to make the request to my own node?

Did you find this page helpful?