New answers tagged token
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 ...
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 ...
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
...
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 ...
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 ...
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/...
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. ...
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. ...
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: ...
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 = "...
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?
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 ...
Top 50 recent answers are included
Related Tags
token × 270spl-token × 80
solana-program × 43
spl × 24
metadata × 22
spl-token-program × 21
mint × 21
web3.js × 20
metaplex × 19
token-2022 × 18
anchor × 15
swap × 15
transactions × 12
account × 11
wallet × 11
transfer × 10
liquiditypool × 10
transaction × 10
associated-token-account × 9
price × 8
spl-associated-token-account × 8
raydium × 8
nft × 7
program × 7
javascript × 7