Skip to main content

Questions tagged [program]

The tag has no usage guidance.

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
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
1 answer
31 views

CustomAccount deserialization issue

I have this piece of code, it skips the first 8 bytes of the account data as that's the descriminator pub struct CustomProgramAccountStruct { pub pubkey: Pubkey, pub authority: Pubkey, pub ...
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
45 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 ...
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
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 ...
4 votes
1 answer
156 views

How do you figure out your current program deployed max size?

When you deploy a program to a cluster, the default size allocated is the binary size * 2. However you won't be using the entire space on the cluster. How do you figure out the space left available in ...
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 ...
0 votes
1 answer
71 views

Deploying program with sol_remaining_compute_units() gives "invalid account data"

Including something like msg!("remaining compute: {}", solana_program::compute_units::sol_remaining_compute_units()); will lead to error when deploying RPC URL: https://api.devnet.solana....
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 ? ...
3 votes
2 answers
935 views

How do I interact with closed-source Solana programs with no public IDL?

How do I interact with a program that has no open source and no Anchor program IDL. I need to get types, accounts and instructions for this program: https://solscan.io/account/...
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?
1 vote
1 answer
143 views

Cannot perform a CPI call using anchor

I tried to make a CPI call from puppret_master to puppet program exactly like the anchor document and i did everything right but "program" AND "cpi" keywords are still unkown for ...
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 ...

15 30 50 per page
1
2 3 4 5
10