Skip to main content

New answers tagged

0 votes

How to track the price or market cap of spl tokens?

according to the documentation, there is a parameter included in the query response called lamports. Lamports will tell you the "market cap" of the AccountInfo you are looking for. Also, I ...
Andres Peña's user avatar
1 vote

Are these parameters possible?

No minting is possible Max token balance is not possible afaik using token or token22 trans fees is possible burning fees is possible token lockup is possible I would suggest using the following ...
Metasal's user avatar
  • 438
1 vote

Getting the pump.fun bonding curve progrress percentage

To get bonding curve percentage you can use bitquery api url According to the above link, we can calculate progress as follows //We get totalReserves, realTokenReserves from bonding curve data ...
Rahul Srivastava's user avatar
1 vote
Accepted

How to accurately calculate token price using bonding curves?

The main issue with your original calculation was that it didn't account for the constant product formula used by bonding curves aka delta (x + Δx)(y - Δy) = xy where x is the SOL reserves and y is ...
sudo Guest's user avatar
1 vote

Token swap using Javascript / NODE with Raydium V4

The error "InstructionFallbackNotFound" means we need to properly serialise the instruction data for the Anchor program. Do you have the IDL? If yes, use that to help you. If not - here is ...
Metasal's user avatar
  • 438
0 votes

My account has become a Token Account, how can I solve it?

Same happened with me, My account is also become a Token Account. and It's ownership shows someone else. please check details below : My wallet : https://solscan.io/account/...
md rashedul islam's user avatar
2 votes

How to get the first mint transaction by token address using a request?

I'd suggest using the getSignaturesForAddress RPC call for the mint address to just get the transaction signatures. This returns just the transaction signatures involving the account, newest first. ...
Callum M's user avatar
  • 3,775
0 votes

Is there a reliable way to create Solana tokens for free or at a very low cost?

If you want to create a token on the Solana blockchain, an affordable and easy option could be the Solhub Solana Token Creator page. On this platform, you can create your SPL token without any coding. ...
Ali Ahmed's user avatar
1 vote
Accepted

How can i close wsol account

Since wrapped SOL is an SPL token account, you can retrieve the amount used to create it by closing the account. using the spl token CLI spl-token close --address <TOKEN_ACCOUNT_ADDRESS> ref: ...
Jimii's user avatar
  • 7,672
0 votes

how to decode data instructions with javascript

i try above two methods, but fail. Method 1 import * as borsh from 'borsh'; import bs58 from "bs58"; const schema = { 'struct': { 'discriminator': 'u64' } }; const data = "...
momo's user avatar
  • 11
0 votes

Get Token Metadata (decimals,symbol,name...)

In this answer I discuss some important details for your question: how to get AccountInfo from serialized data?
Ether Man's user avatar
2 votes
Accepted

Buy using TokenAccount with init errors on second call with "Provided owner is not allowed"

In anchor, when you are creating an account with init burt you are not sure if it already exists (like in the second buy, or for any associated token account) it's better to use init_if_needed. It ...
Kox's user avatar
  • 36

Top 50 recent answers are included