Questions tagged [program]
The program tag has no usage guidance.
150
questions
2
votes
1
answer
50
views
Admin endpoints in a program
How can I ensure that a function can only be called by the address that deployed the program, or the address that is the mint authority ? In anchor
0
votes
0
answers
46
views
deploy program and failed at 99% almost every time?
Error: 1 write transactions failed
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
what this means? some one rejected ...
1
vote
1
answer
52
views
Got error "account data too small for instruction" when run Anchor deploy?
Sometimes I got this error when deploy program with running "anchor deploy":
Error: Deploying program failed: RPC response error -32002: Transaction simulation failed: Error processing ...
0
votes
1
answer
39
views
What happened to this meme coin?
How something like this shown in the chart can happen and how can I possibly find out before it happens.
https://dexscreener.com/solana/2wicz7qpvun1rnuhvusdf8xah22rbkixekgs43rdboj4
0
votes
2
answers
38
views
can not deploy, getting weird error
i'm trying to build and deploy a program, but i get errors while building (althought it still finishes the build), and i can't deploy.
Here is the error while deploying :
ELF error: Failed to parse ...
0
votes
0
answers
18
views
Funding Unfunded Account using Smart Contract
I am searching a way to fund a account using smart conttact, that work fine if the receiver is already done some transactions. This is failing if there is no transactions done on the account.
How can ...
1
vote
1
answer
44
views
Invoking Solana Programs
I was checking different ways to initialize a solana program. I am quiet new to field and expecting some support here.
I am running some VMs on a auto scaling group. I want to invoke a program when ...
2
votes
1
answer
34
views
Deploy a program from another program
I'm trying to build a bridge and I need to create pools in both chains
In Solidity, I would be creating a contract that deploys and manage individual pools, but not sure if that can be achieved in ...
1
vote
1
answer
12
views
Is there a reason for usage of C representation of types in some SPL
For example, why is there COption when compared to the Native Rust primitives and the Rust native Option?
What's the advantage of having this?
0
votes
1
answer
24
views
How can I develop to purchase NFT in Solana and anchor
Help me please~~~
Could you send me a sample code or project?
1
vote
1
answer
45
views
Account creation on Solana
Suppose I have a PDA address that hasn't been initialized yet and I send SOL to it,
Am I correct in assuming that this account will exist?
Who will have control over this account? Will it still be by ...
2
votes
1
answer
27
views
How is program size calculated
I would love to know how a Solana program's size is calculated.
Do PDA's size that are owned by the program add up when this calculation is done? What about arguments?
0
votes
1
answer
25
views
Is the stateless-ask program deployed on mainnet somewhere?
Has someone or some organization deployed the stateless ask program on mainnet somewhere?
https://github.com/solana-labs/solana-program-library/tree/master/stateless-asks
0
votes
1
answer
25
views
Best practice design PDA in solana
When developing contract in solana, I had seen some example (include example in solana cook book - https://solanacookbook.com/gaming/store-sol-in-pda.html#tiny-adventure-anchor-program-part-two) had ...
1
vote
1
answer
23
views
Is there anyway to decode program account change that I don’t know the struct?
I’m trying to decode update that I got from the call of “connection.onProgramAcccountChange” but I don’t know the struct of possible outcome, is there anyway to get the struct or decode it somehow ?
...
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....
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 ...
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, ...
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 ...
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?
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 ...
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, ...
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: &...
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 ...
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 ...
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.
...
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 ...
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 ...
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" ...
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 ...