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
Solana.py error: Invalid account data from instruction
Use the burn instruction that spl token library provides or create an ATA for this address 1nc1nerator11111111111111111111111111111111 which is mostly used for such operations. …
1
vote
Accepted
Can I burn SPL Tokens that are sent from a user to a Solana Program?
use super::*;
pub fn burn_spl_tokens(ctx: Context<BurnSPLToken>, amount: u64) -> Result<()> {
let cpi_program = ctx.accounts.token_program.to_account_info();
let cpi_accounts = Burn … let bump = &[ctx.bumps.mint];
let signer_seeds: &[&[&[u8]]] = &[&[b"mint", bump]];
let cpi_ctx = CpiContext::new_with_signer(cpi_program, cpi_accounts, signer_seeds);
burn …