Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7925

trying to fetch all tokens which are created by walletAddress

$
0
0

hello i have been trying to fetch all tokens created by walletAddress or user.i am trying helius as someone already suggested me to use helius with the getAssetsByCreator function.

i need only token which are created by user not the NFTs

const fetchAssets = async (creatorAddress) => {    try {      const response = await axios.post(        `https://mainnet.helius-rpc.com/?api-key=...`,        {          jsonrpc: "2.0",          id: "my-id",          method: "getAssetsByCreator",          params: {            creatorAddress:'6i2aHtxfqkC2biTo98FSkP59FVHPKFRLZWDbdghN6WKK',          },        },        {          headers: {"Content-Type": "application/json",          },        }      );    } catch (error) {      console.error(error); // Handle error    }  };

but there are 20+ tokens showing created by user on pumpfunAnd the response array doesn't give me any single token,either this is only used for NFTs I am not sure. if yes then how to find the tokens which are created by user, doesn't matter the user has the token now or not.

you can check all tokens created by this address here.https://pump.fun/profile/6i2aHtxfqkC2biTo98FSkP59FVHPKFRLZWDbdghN6WKK

the helius docs linkhttps://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api/get-assets-by-creator


Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>