Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 712

A token is a coin on the Solana network

3 votes

WHITELISTING FUNCTION

For that you can for example use the transfer hook extension of the token extension program (aka token 2022) Its not an easy task though. … v=LsduWRtT3r8&t=1053s&ab_channel=Solana And the transfer hook guide: https://solana.com/de/developers/guides/token-extensions/transfer-hook …
Jonas H.'s user avatar
  • 7,219
1 vote

How can I get the Icon of a token?

This works: string tokenIconUrl = $"https://github.com/solana-labs/token-list/blob/main/assets/mainnet/{tokenMint}/logo.png? … raw=true"; But seems to be old way of doing things and should use the meta data account instead according to this: https://github.com/solana-labs/token-list …
Jonas H.'s user avatar
  • 7,219
2 votes
Accepted

Minting Token2022 token error. Account not found

The Solution to this problem is that you first need to create a token account for your new token using the command: spl-token create-account EBF22st7gRqvKtEYW2WomsHUsNrjtPcZvpDAnh6W7Ugu Then afterwards … Reason for that is that you first need a token account that you can mint your token into. …
Jonas H.'s user avatar
  • 7,219
1 vote

Is devnet working?

Here is a guide that shows you 7 different way on how to get devent sol. https://solana.com/de/developers/guides/getstarted/solana-token-airdrop-and-faucets For example the web faucet https://faucet.solana.com …
Jonas H.'s user avatar
  • 7,219
0 votes

Token without value of dollar $. How to swap it back?

If your token account has been frozen only the owner of the token with the freeze authority can unfreeze it probably. Best contact the creator of the coin. …
Jonas H.'s user avatar
  • 7,219
3 votes

Can I use the meta plex js SDK to update SPL token meta data?

Now im just using the createSFT function from metaplex instead: Here is the solution: import { keypairIdentity, token, Metaplex } from "@metaplex-foundation/js"; const metaplex = new Metaplex(pg.connection … , symbol: "GOLD", isMutable: true, }); let mintResult = await metaplex.nfts().mint({ nftOrSft: createdSFT.sft, authority: pg.wallet.keypair, toOwner: pg.wallet.keypair.publicKey, amount: token
Jonas H.'s user avatar
  • 7,219
1 vote

Fetching Transaction Hashes

getSignatureForAddress has a before parameter which means it starts searching from that signature. So you could create a loop that goes backwards and starts again searching from the oldest signature b …
Jonas H.'s user avatar
  • 7,219
1 vote

Following the Token Extension Program, How do I add a burn function to my token

You can also use the CLI to burn the tokens: spl-token create-token -> Copy MintAddress spl-token create-account MintAddress -> Copy tokenAccount spl-token mint MintAddress 1000 spl-token burn tokenAccount … 10 This will create a token, mint 1000 of it and then burn 10 …
Jonas H.'s user avatar
  • 7,219
1 vote
Accepted

How to check if a solana token creator can change the name or picture of the token that he s...

I would recommend against using someone elses token you don't know for your community. You can check if the token meta data is mutable in the solana explorer. … I would probably not do that if you don't actually own the token authority. …
Jonas H.'s user avatar
  • 7,219
0 votes

How to track buys and sells from a Token on the solana chain?

It looks like you are using the public RPC endpoint. This one is heavily rate limited. So since you are sometimes getting the correct result you can probably fixing it by using a payed RPC node. For e …
Jonas H.'s user avatar
  • 7,219
2 votes

How to use a Transferhook + Permanent Delegate together

You can maybe change this white list example up a bit to make it work: https://github.com/solana-developers/program-examples/blob/main/tokens/token-2022/transfer-hook/whitelist/anchor/programs/transfer-hook …
Jonas H.'s user avatar
  • 7,219