Top new questions this week:
|
Currently to get the size of a transaction I have to do the following const tx = new Transaction().add(…) const { blockhash } = await connection.getLatestBlockhash(); tx.recentBlockhash = blockhash; …
|
How can I find out the Collection’s public key of some NFT in Anchor? I know it was easy to do with the Solana SDK, but as far as I know it is not compatible with Anchor. More specifically, how can I …
|
I want to check my past event emitted by smart contract during function call so that I can verify that the function is actually called. “program.addEventListner()“` is used only for real-time I need …
|
This is similar to Can I Create an Account and Transfer Tokens in the same Transaction? but the ‘answer’ to that question doesn’t actually show how to use the token account created in the first …
|
I currently write a signer which aims to signMessage from the front end and returns its signature. On EVM based, It contains \x19Ethereum Signed Message:\n prefix to invalidate the signing of …
|
essentially all the lists are the same, but when i call the bluelist account i get ” Error: Account does not exist HkBnFqgNQfWisvKkDwSbUzE2EJ3jriQHY64H4t3EjjeM” this error happens on …
|
How can I derive an associated token account address for a given wallet address and token mint?
|
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) -> …
|
Following error occurs when I try to run anchor test: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete at Connection….
|
I have created and written a simple Solana program using anchor & successfully compiled it using anchor build command. I run a local validator node in a terminal using solana-test-validator and …
|
Trying to create a program that has the authority to mint tokens to the wallet signing the transaction. However, one of my tests keeps failing with: “insufficient account keys for instruction&…
|
I want to write arbitrary account data to an account. I tried using BPF Loader Upgradeable’s Write method, but there was a ton of padding at the start.. Is the only way to do this using an on-chain …
|
I’ve started to learn Solana and I’m on the very beginning. When running cargo build-bpf, I get an error like this: error: could not compile `crossbeam-epoch` Caused by: process didn’t exit …
|
I’m installing Solana on WSL following this guide: github.com/LearnWithArjun/solana-env-setup/blob/main/mac_or_linux_setup.md When I come to ‘anchor test’ I get this error: anchor test BPF SDK:…
|
Can you answer these questions?
|
What are the steps to getting a single-node validator in a private network (using the solana-validator binary) running? The current setup I’m doing is solana-genesis \ –enable-warmup-epochs \ –…
|
I am trying to create a sign in transaction using the following code (using react wallet adapter): const tx = new Transaction().add( // create nonce account SystemProgram….
|
How can I fix this error? This is a basic anchor smart contract that initializes an account. There’s only one value, an integer, stored. I tried boxing the account (to put the storage on the heap, …
|