Top new questions this week:
|
What does the error for A raw constraint was violated mean?
errorCode: { code: 'ConstraintRaw', number: 2003 },
errorMessage: 'A raw constraint was violated',
|
Just to confirm if I understood all the docs correctly. Basically to get them to work I have to:
Have a metadata program that adheres to the token-metadata interface. Critically, it needs to handle ...
|
Suppose I have a PDA that is supposed to be initialized by calling a CPI in my program and I want to validate that the account is valid, is there a way I could add a check to make sure that the ...
|
Can I see by API or something else all the programs or tokens when an specified account has authority to mint or update?
|
What does it mean Lamport?. How many Lamports is one Solana?. Is it important?. What is Lamport balance?. How to calculate it?. How many Lamports should I have in my account to be estimated rent ...
|
I'm looking for a way to block tokens created on the Solana blockchain. Ideally I would like to do this using Python. Please provide code samples.
Situation: I need to block an account that has my ...
|
Does anyone have a TS file that I can have that creates a metadata pointer for a token where the address is already known.
Almost every exampel I find also creates the token, but I need it to just ...
|
Greatest hits from previous weeks:
|
I'm curious what the practical difference is between the Transfer and TransferChecked instructions, and when should we use one over the other.
In this question, I'm using Transfer/TransferChecked as ...
|
I get the following error when I run anchor test to test my smart contract using typescript:
Error snippet
abortSignal: options?.abortSignal,
^
SyntaxError: ...
|
I'm writing a program where I'm fetching the program_address (as below) and now I want to convert the publicKey to AccountInfo and use it to do token transfer CPI.
let (asset, bump_seed) = Pubkey::...
|
Does Solana use Chain IDs the way they are used in EVM blockchains? I cannot find this in the Solana documentation and in the internet. If Solana uses Chain IDs, where can I find them? If not, is ...
|
I have a bunch of 0 balance SPL token accounts. How do I close these accounts to redeem the rent lamports?
|
I have the JSON file containing the keypair which has an array containing 64 values:
$ cat ~/my-solana-wallet/demo.json
[4,182,130,247,119,117,227,207,112,73,170,126,222,197,244,99,215,107,255,202,33,...
|
I have been following a tutorial on Solana native development and need to interact with SPL-Token crate at some point.
However, I can not build (cargo-build-bpf), it throws:
BPF SDK: /Users/user1/....
|
Can you answer these questions?
|
const { Token, TOKEN_PROGRAM_ID } = require("@solana/spl-token");
const { Connection, PublicKey, Keypair } = require("@solana/web3.js");
async function main() {
// Your existing ...
|
Given a block interval, I want to get every Solana address with less than 3,000 transactions.
For the moment, I check every block in the interval and write down the addresses. But I need 3 extra API ...
|