Skip to main content

Questions tagged [program]

The tag has no usage guidance.

0 votes
2 answers
159 views

creating a custom spl token 22

hey i made a custom keypair and want to make a custom contact address like my keypair. then I spl-token create-token and entered my keypair json and I got this "Error: "default signer is ...
BurnerDragon's user avatar
0 votes
1 answer
206 views

How To Name Solana Instructions and Add Program Public Name

On Solscan, when you go to Analytics and scroll to the bottom, I noticed some programs like Raydium, Pyth and Metaplex have public name's set and you see that instead of seeing the program account ...
Brian M.'s user avatar
  • 121
1 vote
2 answers
38 views

Does a CPI method to a program leave any special footprint on the blockchain?

Firstly, do I understand correctly that CPI call is one of the ways to call a method of program? If so, only by examining a TX on the blockchain, will it be possible to distinguish a CPI call to a ...
kriss100's user avatar
0 votes
1 answer
89 views

Validate secp256k1 ethereum signature?

I’m working on an anchor-lang project to validate secp256k1 ethereum signature. I used secp256k1_recover program docs as a reference for this code. The problem is that the public key I get from the ...
Teodor Zafirov's user avatar
0 votes
0 answers
71 views

Deserialize Solana.Transaction Golang

I have a Golang Solana.Transaction object and want to obtain the raw/pre-compiled instruction details. How can I deserialize the Transaction.Message.Instruction?
Ron's user avatar
  • 1
1 vote
1 answer
66 views

How to pause program on Solana?

How can I pause program in Anchor on Solana like pause provided by Solidity? I know programs on Solana is stateless, but I need to achieve this function.
user9310's user avatar
0 votes
0 answers
26 views

My ownership transferred to another program. How can i set it back to systemprogram?

Scammer transferred my program to another program. Now my wallet is assigned to his program. So I it can't pay for transaction fees anymore. How can I set it back to system program to recover ?
Coşkun Kömürcü's user avatar
0 votes
1 answer
419 views

Solana Transactions using Solders object has no attribute 'recent_blockhash'

Below is the Python code I wrote to try to engage the logs of a deployed program. I don't know why I keep getting the following error: An error occurred: 'solders.transaction.Transaction' object has ...
Dino Anastos's user avatar
2 votes
1 answer
70 views

Access Account Discriminator in Anchor

I wish to access the discriminator of an Account Type inside a program. The only method I found is let mut init_storage_data = ctx.accounts.storage.try_to_vec().unwrap();, but it's skips the first 8 ...
PandaPanda's user avatar
1 vote
2 answers
45 views

Is There a Limit To How Many People Can Transfer SOL Into a "Pot" Account?

I'm building a game and want to give players the ability to pool SOL into a PDA account that is distributed to the player that wins. I've read about write-locked accounts, but usually only in the ...
Brian M.'s user avatar
  • 121
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....
Pun's user avatar
  • 1
1 vote
1 answer
159 views

What determines the size of a program

How is the size of a program calculated? If all accounts have a limit of 10 kibibytes, I assume that also applies to programs as well? How will the extend program size affect this? does it allow me to ...
Jimii's user avatar
  • 3,907
2 votes
1 answer
130 views

Deserialise getAccountInfo data from Rust rpcclient for a PDA from drift protocol

Basically I have the following code in devnet. I want to call getAccountInfo to get some account information. I have a PDA: JD71QyQpAJvoyq4p6mfwyaw4rY9qaDLk4CQpHeuPSpEK created by the programId: ...
panicKing's user avatar
2 votes
1 answer
33 views

canonical method of calling programs functions in script format

I have a couple deployed programs on Devnet. Is there a standard way of calling functions on a deployed program, assuming I have the IDL? Obviously I could write a test but a test typically deploys a ...
AceGravity's user avatar
3 votes
2 answers
936 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/...
FDFD FDFD's user avatar

15 30 50 per page
1 2
3
4 5
10