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 84

A token is a coin on the Solana network

1 vote

What is the First Mint Tx of SOL?

The first accounts holding SOL were defined at genesis, so it was never "minted" -- it was just in all of the accounts when the cluster was started. You can see them all at https://github.com/anza-xyz …
Jon C's user avatar
  • 19.6k
2 votes

Is it possible to create deflationary token on solana?

You can create a token with the "transfer fee" extension, and set the fee withdraw authority to the PDA for some simple program which allows anyone to withdraw and burn the fees on any account. …
Jon C's user avatar
  • 19.6k
1 vote

Remove Transfer-Hook from my token

You just need to disable the transfer hook program id on your token. You can do that by running: $ spl-token set-transfer-hook <TOKEN_MINT_ID> --disable …
Jon C's user avatar
  • 19.6k
3 votes

Don't understand what wrapped SOL is

The concept is similar to wrapped ETH on Ethereum, which turns ETH from a native token to an ERC-20. Essentially, SOL is the native token on Solana, so it's ingrained into the base protocol. … SPL-Token provides a way to send SOL into an account and pretend like the SOL is a normal SPL-Token, and this process is called "wrapping". …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Can I change mint authority from null to an address

More information at the "disable future minting" step at https://spl.solana.com/token#example-create-a-non-fungible-token
Jon C's user avatar
  • 19.6k
4 votes
Accepted

Helius Webhook for get real-time information about new tokens created

You could use the logsSubscribe websocket endpoint for all transactions involving the token program, TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA, ie: { "jsonrpc": "2.0", "id": 1, "method": "logsSubscribe … mint by searching for Instruction: InitializeMint https://github.com/solana-labs/solana-program-library/blob/ca091b1711667bbb456c52f06e809d16b9255af3/token/program/src/processor.rs#L856 or the creation …
Jon C's user avatar
  • 19.6k
2 votes

Can the LP tokens be burnt of a 'frozen' token?

Frozen token accounts are completely unusable by the owner. More info at https://spl.solana.com/token#freezing-accounts …
Jon C's user avatar
  • 19.6k
0 votes

Token get initialized but not minted

You're creating the mint account no problem, but you haven't created the associated token account to receive the tokens, which is why the transaction is throwing invalid account data for instruction (I …
Jon C's user avatar
  • 19.6k
0 votes

How to burn LP on Solana with CLI?

Here's a sample CLI command to do it: spl-token burn <TOKEN_ACCOUNT_ADDRESS> <TOKEN_AMOUNT> …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Token Creation Issue on DevNet

By providing my-keypair.json as an argument to create-token, you're trying to create a new spl token mint at the address of your wallet, which would essentially make your wallet unusable. … $ spl-token create-token --decimals 18 Creating token GSsxAddWf1UbWWvSr8Dn2zgBaGzRv154dC1tpH9acE25 under program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA Address: GSsxAddWf1UbWWvSr8Dn2zgBaGzRv154dC1tpH9acE25 …
Jon C's user avatar
  • 19.6k
0 votes

Cannot create account for a token in CLI

If you're using mainnet, be sure to add a priority fee to your transaction using the --with-compute-unit-price and --with-compute-unit-limit flags, ie: spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz …
Jon C's user avatar
  • 19.6k
0 votes

solana spl token revoke authority of accountowner

Your code sample is calling transfer with the token client and then trying to add it to a transaction, which is incorrect for two reasons: you want to revoke, not transfer the token client will create … , sign, and send the transaction for you already Instead, you can just do: def revoke_authority(token_client: Token, account_address: str, key_pair: Keypair): try: token_client.revoke(account …
Jon C's user avatar
  • 19.6k
1 vote

How can a user create an ATA in phantom wallet before owning the actual token?

There's definitely a way for people to claim the airdrop themselves! You can write an on-chain program that holds onto a bag of your tokens. The on-chain program receives a list of the 20k people from …
Jon C's user avatar
  • 19.6k
2 votes
Accepted

Transfer Hook vulnerabilities

For example, a transfer hook might want to deduct a fee in USDC for a royalty payment, which requires token accounts, program, and a separate signer. …
Jon C's user avatar
  • 19.6k
1 vote

creating a custom spl token 22

In your case, you need to specify some keypair to pay for the transaction to create the token. …
Jon C's user avatar
  • 19.6k

15 30 50 per page