Skip to main content

Questions tagged [program]

The tag has no usage guidance.

0 votes
1 answer
45 views

Tx Reverting Even If Internal CPI Fails

Creating a CPI call, since it returns a Result. If the internal call throws an error, err should have an err() field as per the definition. The whole transaction should not revert, but it is reverting....
Priyanshu Mishra's user avatar
0 votes
2 answers
76 views

Revoke Mint authority in Anchor

How can I revoke the mint authority of my SPL token using Anchor? Using the Revoke accounts context seems not to make a difference. Side note, what does source represent from anchor's SPL token ...
Jimii's user avatar
  • 3,907
0 votes
2 answers
61 views

Is it possible to burn tokens on transfer?

Hey is it possible to create a token2022, and burn x% of tokens on every transfer? Something like transfer tax, but burning the tokens. Also i got second question, how can i deploy token on-chain, ...
youwish's user avatar
  • 33
1 vote
1 answer
12 views

Does <AccountInfo> have the accont key?

Looking at getMultipleAccountInfo it returns a AccountInfo<T>: { data: T; executable: boolean; lamports: number; owner: PublicKey; rentEpoch?: number; } Am I correct in ...
kekti's user avatar
  • 55
1 vote
1 answer
36 views

Websocket version of getProgramAccounts

Is there a WebSocket version of getProgramAccounts that allows me to fetch PDAs with supplied seeds?
kekti's user avatar
  • 55
2 votes
1 answer
36 views

Relational PDA design through seeds

I have somewhat what seems to be a fairly simple question. Lets assume we are building a Todo list where everything is public. And lets say a user will be able to create a new Task and that task will ...
kekti's user avatar
  • 55
0 votes
0 answers
7 views

want to what's wrong in my contract as i can't able to call my deposit function

use anchor_lang::prelude::*; use anchor_spl::token::{self, Token, TokenAccount, Transfer as SplTransfer}; // use solana_program::system_instruction; use solana_program::{account_info::AccountInfo, ...
SACRED- ESP's user avatar
0 votes
1 answer
40 views

Can't run local validator on MAC

Hello I'm getting the following error: Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: &...
Soldevrookie's user avatar
1 vote
3 answers
218 views

Deploying a program to mainnet seems impossible?

I have no issue deploying to testnet and devnet, but everything I've tried to get the program to deploy to mainnet using the CLI ends up with it hanging. Has anyone deployed a program recently (April ...
Crypto Actuary's user avatar
0 votes
0 answers
18 views

Can anyone help me, they changed the owner of my account and I don't know what to do?

Can anyone help me, they changed the owner of my account and I don't know what to do? my wallet 86tBAuUuyJE8hUj1wBy2WfAKGts8KhJD6skpyUUowzRJ They hacked me and changed the owner, is there a way to ...
tonynhu's user avatar
0 votes
0 answers
33 views

How do i get manual about token-creator-lac.vercel.app

I need manual about "https://token-creator-lac.vercel.app/". do you have any manual about "https://token-creator-lac.vercel.app/"? My email is [email protected] please send me. ...
블루검객's user avatar
2 votes
0 answers
255 views

Cannot deploy program onto solana mainnet

First of all, it's super slow when deploy(anchor deploy) my program to mainnet, I got error: Blockhash expired. 4 retries remaining Blockhash expired. 3 retries remaining Blockhash expired. 2 retries ...
user2873314's user avatar
0 votes
1 answer
122 views

failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x5

I encountered an error while executing a program call. Specifically, the error arises during the invocation of a function where I'm attempting to create a metadata account using the ...
Manav Panchal's user avatar
1 vote
1 answer
95 views

get transactions/logs from different program, on a span of blocks

Here is the situation: I'm using Rust. I need to be able to "listen" to transaction, or at least logs from a list of solana program. I cannot use Websocket's "logsubscribe" ...
Nathan's user avatar
  • 176
1 vote
1 answer
245 views

"package solana-program v1.18.7 cannot be built" error [duplicate]

I have a new Rust project that gives the following error when I compile it. package `solana-program v1.18.7` cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc ...
mezzosoprano's user avatar

15 30 50 per page
1
2
3 4 5
10