Top new questions this week:
|
I generated a 12-word BIP39 word sequence using a third-party library (not from the solana tools). Next, I went to the phantom mobile application and added a wallet by restoring it using a 12-word …
|
Is there a pattern in which account the IDL is stored in?
|
I have tried but I don’t think there is such thing as solana account –stakes <wallet address> to get the list of stakes that belong to the wallet address. How to get stake addresses for a given …
|
when I try to anchor IDL init, i get stuck permanently trying to finalize the txn. anchor idl init –filepath ./target/idl/solotesting2.json Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS –provider….
|
When calling a CPI that calls another instruction in the same program, you need to pass the program into the program, which is awkward. For example, removing this_program as an account here causes the …
|
Say I have a secretKeyString extracted from a keyPair using keyPair.secretKey.toString(); I know I can restore a keyPair from the string with: const secretKeyStringToKeypair = (secretKeyString: string)…
|
When I transfer SOL from my wallet to a PDA (~1000 Lamports). I get Transaction simulation failed: Transaction results in an account (2) without insufficient funds for rent Do I need to initialize my …
|
Greatest hits from previous weeks:
|
I have a dynamic list of accounts which I need to transfer spl tokens to, I am using the following function: pub fn transfer_token(ctx: Context<TransferToken>, amount_of_tokens:u64) -> …
|
I probably am doing something really stupid but this basic thing doesn’t seem to work for me for this scenario. I checked the other questions similar to this one but they are either different …
|
i process transactions and get metadata of nft but sometimes there are many fake one but i can’t distinguish if it’s fake or not, so i put them in the real collections. Let’s look at some details. let’…
|
Following the example in the docs here. When I try to send a tx that would create a LUT I get: logs: [ ‘Program AddressLookupTab1e1111111111111111111111111 invoke [1]’, ‘157405384 is not a …
|
thread ‘main’ panicked at ‘called Result::unwrap()on anErr value: ParseIntError { kind: InvalidDigit }’, lang/syn/src/idl/mod.rs:214:76 I’m new to anchor and using it for past two weeks. I wanted to …
|
I am facing an error on adding line Vec<String>, type or String type. Error: #[derive(Accounts)] pub struct ModifyLedger<‘info> { #[account(mut)] pub ledger_account: Account<‘…
|
Getting this error and I know its regarding rent is less or something like that, but how to solve this? by adding more tokens to the program id?? const tx = await program .methods .vote(…
|
Can you answer these questions?
|
I am maintaining a server for transaction request . when I am scanning the qr on my client (browser) and wallet(Phantom) is making a request to the server which is running separately the code is …
|
In order to delegate funds they must be moved into a staking account. The staking account address can be anything, even random bits as long as it doesn’t collide with any other staking account address….
|
This code used to work fine to look up my SOL balance in my wallet: const loadBalances = async (walletKey: string) => { console.log(‘looking up balances for: ‘, walletKey); let connection …
|