Skip to main content

Questions tagged [program]

The tag has no usage guidance.

3 votes
2 answers
333 views

Program Test Error: Error Processing Instruction 0: Program Failed to Complete

I have a program with 6 instructions, they all pass and this is the last one before I move client-side and server-side. In the prior instruction, I successfully use invoke() to transfer SOL from the ...
Brian M.'s user avatar
  • 121
0 votes
1 answer
84 views

Convert solana wallet to custom program owned wallet

Is it possible to convert a system program owned account which has sol and other spl tokens in it to a custom program owned account and still retain all the items the account previously had?
Muhit Raihan's user avatar
1 vote
1 answer
122 views

Is there any demo of using javascript / typescript to interact with solana program

Is there any demo of using javascript / typescript to interact with solana program ? For example, how to interact with this program ? https://solscan.io/account/...
Z W's user avatar
  • 11
1 vote
0 answers
107 views

Cannot deploy program on mainnet for two weeks

I use solana command tool to deploy program on mainnet and always got failed. I have try for two weeks. I try 1.14.X, 1.16.X and 1.17.X. But got failed. tangaoyuan@tangaoyuandeMacBook-Pro program % ...
user6717's user avatar
1 vote
0 answers
15 views

Is it possible to check the Solana program `macro` correctness before deployment?

When we want to deploy program to Solana, first we need to generate the program keypair and insert the public key in my declare_id! macro in lib.rs. Because I want to expose an API interface for user ...
johnhckuo's user avatar
  • 137
0 votes
0 answers
46 views

Is it possible to deploy program with Solana SDK

There are many examples and tutorials on how to deploy Solana account using anchor framework or the native way. I can successfully deploy account and update its field with anchor SDK & IDL. ...
johnhckuo's user avatar
  • 137
0 votes
1 answer
104 views

Getting ConstraintRaw Error

I'm integrating smart contract in next js. and getting this error Uncaught (in promise) Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 2: custom program ...
Sabir Khan's user avatar
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 ...
Muhit Raihan's user avatar
0 votes
3 answers
56 views

what is the name of the second parameter for `CpiContext`

For example, when calling the instruction to mint_to my wallet, I initialize the cpi_context let cpi_context = CpiContext::new( ctx.accounts.token_program.to_account_info(), ...
Jimii's user avatar
  • 3,907
2 votes
1 answer
273 views

How are CPI calls charged?

When making CPI calls in my program, I am wondering whether I pay for the transaction cost associated with it. To my understanding my program execution is paused and it goes to executing the cpi-ed ...
Jimii's user avatar
  • 3,907
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 ...
pooria sarkhan's user avatar
0 votes
1 answer
51 views

How can i enter a Vec<PubKey> in the solana play ground?

I want to enter a Vec as input But i can't do that i don't know what is wrong !
pooria sarkhan's user avatar
0 votes
1 answer
23 views

How does SOL accounting work in non-rent-exempt programs?

I wonder how does one reason about SOL accounting in non-rent-exempt Programs? It seems to me that static analysis of a Program's balance is impossible besides just assuming that it changes on each ...
Paul Razvan Berg's user avatar
1 vote
3 answers
578 views

Can anyone close non-rent-exempt accounts?

This statement from Alchemy's tutorial has caught my attention (emphasis mine): To reclaim Solana storage fees, developers and everyday Solana users can close accounts to receive their storage fees ...
Paul Razvan Berg's user avatar
2 votes
1 answer
35 views

Can the state of removed Programs be recovered after they failed to pay rent?

From the docs on rent: Accounts that do not maintain their rent exempt status, or have a balance high enough to pay rent, are removed from the network in a process known as garbage collection. What ...
Paul Razvan Berg's user avatar

15 30 50 per page
1
3 4
5
6 7
10