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 pumpfun And 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 link https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api/get-assets-by-creator