Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
223 views

Is their any API to fetch tranding meme tokens of solana?

I want to fetch all the meme tokens listed on solana network sorted according to the top tranding token first.
Alpha Algorithm's user avatar
0 votes
2 answers
68 views

Batch Airdrop Spl Tokens

I was working over batch airdrop script.js I found only I can airdrop spl-tokens only to 10 ATA accounts due to this Error: Transaction too large: 1270 > 1232 Is there any approach that helps me to ...
hammad ali's user avatar
2 votes
2 answers
538 views

Why do we close WSOL Token Program accounts?

Background: If I understand correctly: During transactions where we transfer SOL to/from wallets, we need to wrap the SOL in a temporarily created WSOL Token Program account. Then use that to transfer ...
Joe's user avatar
  • 133
0 votes
0 answers
33 views

Accidentally sent tokens to Associated Token Account Program ID

I made a mistake and accidentally sent my tokens directly to the Associated Token Account Program ID: ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL. I understand that this is a program ID and not a ...
Syntax Surge's user avatar
1 vote
1 answer
107 views

Funding Native Mint: Sum of account balances before and after instruction do not match

I'm trying to fund a Native Mint token Account from a PDA and then Sync it like so. **(funder.try_borrow_mut_lamports()?) -= excess_sol; **(wrapped_sol_escrow.try_borrow_mut_lamports()?) += ...
Trevor's user avatar
  • 185
1 vote
2 answers
422 views

Getting error while minting token to an account "Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction"

My mint test cases are failing and I am clueless where it is going wrong pub fn mint(ctx: Context<MintToken>, params: MintTokenParams) -> Result<()> { // Check user balance ...
blackhorse's user avatar
3 votes
1 answer
365 views

How to Access SPL-Token ATA Account Inside a Program for Burning

I'm creating a Token-2022 token with a transfer hook that burns some of the token on transfer. However, the token I want to use I want to create in the CLI. However, in order the burn a token, I need ...
Brian M.'s user avatar
  • 141
0 votes
1 answer
109 views

How to create the seeds for invoking spl cpi instruction?

I need a program owned token account to hold WSOL. I am creating it like thus #[derive(Accounts)] pub struct InitializeProgramTokenAccount<'...
guccimane's user avatar
2 votes
1 answer
549 views

Explanation for two token accounts for one owner?

These two token accounts have the same mint and owner. https://explorer.solana.com/address/2xPnqU4bWhUSjZ74CibY63NrtkHHw5eKntsxf8dzwiid https://explorer.solana.com/address/...
euler's user avatar
  • 31
2 votes
2 answers
367 views

How can I recover SPL tokens from an account that is nested inside another ATA account?

We have a Kin account that is nested under a USDC account. We have 2 USDC accounts, and the Kin is nested under a USDC account [1] that wasn’t created by the Associated Token Account program [2], ...
rory's user avatar
  • 21
0 votes
1 answer
2k views

Error: failed to get accounts owned by program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC

I am trying to find all the token accounts that belong to a specific wallet address however i keep getting this error: Error: failed to get accounts owned by program ...
shauna vayne's user avatar
6 votes
2 answers
603 views

Looking for implementation example of anchor_spl::token::initialize_account

I want to use the initialize_account function from anchor_spl::token. The function is given below: pub fn initialize_account<'a, 'b, 'c, 'info>( ctx: CpiContext<'a, 'b, 'c, 'info, ...
fahad's user avatar
  • 399