Search Results
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 |
1
vote
How can I create an Associated Token Account for USDC on my Solana wallet?
no the ATA is not created automatically by Solana protocol.
It can be created automatically if you use a wallet like phantom to send tokens for example, or with command line there is an option to fund …
1
vote
Accepted
How to test balance change of my staking program
i don't know the .rpc method, but might be related to confirmation status ?
try to wait for transaction's confirmation before checking again ?
2
votes
Accepted
How to set the token amount into the script
first you should check how many decimals is used for the said token.
Once you have the correct amount of decimals, i never had any problem using something like 12067000000 for example if 9 decimals
1
vote
Can assosiated addresses be generated on an account with no SOL on it?
you can actually try it by yourself : create a new wallet address in phantom, and send some USDC to it, and check if it works :)
I think the real question is how a wallet will "stay alive" on the bloc …
1
vote
What does the get_associated_token_address()] function return if the associated token addres...
the return will be the same regardless if the associated token account has been created or not.
When i use it with javascript, i use getParsedAccountInfo to check if the account had been created or no …
2
votes
Accepted
How can I get metadata for newly minted tokens?
i assume you have the mint address if you can already get the decimal.
To get what you need (name, image...) you have to fetch metadata with metaplex.
import { Metaplex } from '@metaplex-foundation/js …
2
votes
Accepted
Do I have to explicitly create a USDC account to be able to receive USDC coins?
When you send USDC to a wallet address, the sender has to pay to create the linked token account (USDC associated token account for this particular wallet address). if the said token account already e …
1
vote
Freeze, Token two-level smart contract
what you're describing is transfer hook token extension. It is not freeze authority, it is a custom transfer logic in your program. But i'm not really sure that different DEXes will be compatible with …