Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
60 views

Cannot Create an Associated Token Account

I'm not the first to ask a question about this problem, but none of the questions asked were answered. The problem is that I'm trying to create an associated token account to mint an NFT, but the ...
1 vote
1 answer
40 views

how to use spl_associated_token_account in solana_porgram_test?

experiencing error: linking with cc failed: exit status: 1, when I am running ProgramTestContext , like I want to createATAinstruction so that I should have the data in the ata that shows it exists ...
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()?) += ...
0 votes
3 answers
950 views

Is it possible to have reflection tokens like safemoon on solona?

A reminder on how reflection tokens like safemoon work is every ones balance is simply an equation instead of a fixed number. That way everyone's balance can be instantly updated with no gas needed ...
2 votes
2 answers
461 views

What does the get_associated_token_address()] function return if the associated token addresshas not yet been create?

What does the get_associated_token_address() function return if the associated token addresshas not yet been created (function create_associated_token_account() has not yet been executed) ? use ...
0 votes
1 answer
136 views

How to set the token amount into the script

How can I incorporate tokens into the script? For instance, I need to send tokens like USDT, and the token value might be something like 12.067. When I send this value, it sometimes doesn't transfer ...