Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 2367
1 vote
1 answer
181 views

How to convert Vec<u8> to typescript bytes?

In my rust solana smart contact, build with anchor framework, there is one of my variable that is of type in below format struct X { a: Vec<u8> } while building the contract with anchor build comm …
blackhorse's user avatar
3 votes
2 answers
316 views

Is it possible to fetch user account balance in smart contract?

Is it possible to fetch account balance or token balance in the smart contract itself?
blackhorse's user avatar
0 votes
1 answer
219 views

Why my minted spl-token-2022 not coming up on phantom wallet?

I have created my spl-token-2022 from anchor smart contract but the minted tokens are not showing on my phantom wallet. What could be the possible reasons for this? This is my token https://solscan.io …
blackhorse's user avatar
1 vote
2 answers
97 views

Is there any rust function available for getParsedAccountInfo similar to typescript from sol...

I am trying to derive AccountInfo from given public key on Rust, Is there any similar anchor function available like getParsedAccountInfo from solana/web3 library?
blackhorse's user avatar
7 votes
4 answers
871 views

Suddenly getting error message: Safety checks failed: Failed to get program path

Suddenly getting message: Safety checks failed: Failed to get program path error message during anchor build anchor version 0.30.0 solana version 0.18.17
blackhorse's user avatar
3 votes
1 answer
614 views

On calling ctx.bumps.get("mint_account"), failing with error method `get` not found for this...

Hi I am trying to call ctx.bumps.get("mint_account") on #[derive(Accounts)] #[instruction(params: CreateTokenParams)] pub struct CreateToken<'info> { /// CHECK: New Metaplex Account being created …
blackhorse's user avatar
1 vote
1 answer
866 views

What is the meaning of "custom program error: 0x1771" erro?

what is the meaning of custom program error: 0x1771 error?
blackhorse's user avatar
1 vote
2 answers
368 views

Mainnet contract deployment hangs

I am trying to deploy my solana mainnet contract but it stuck during deployment, will it reibursable? Can I cancel it as it is taking longer time? Why it is stuck? Solana mainnet status is also good h …
blackhorse's user avatar
0 votes
2 answers
24 views

Python API to get spl token details given token solscan address

Is there python api to get spl token details like current price, total supply, mint address with given token address along with solscan address?
blackhorse's user avatar
1 vote
2 answers
127 views

Is there a way to get program id of CPI call?

I am calling a solana program A from solana program B using cpi invokes. Is there a way to get the program id of program B on program A or a way to get the cpi is invoked?
blackhorse's user avatar
3 votes
3 answers
978 views

Is there a way to deploy same contract with new program id?

I have to deploy same solana programs with differnt different program ids, how can I do it?
blackhorse's user avatar
0 votes
1 answer
154 views

Is there a way to calculate number of spl-tokens per solana block?

I am new to solana. Can someone suggests ways to: calculate number of spl-tokens per solana block? Is there any rpc methods to do so? How to get solana block height in solana?
blackhorse's user avatar
2 votes
1 answer
106 views

How to catch error or throw custom error if PDA doesn't exist in Solana program

Is there a way to throw custom error if PDA account does not exist in a Solana program?
blackhorse's user avatar
1 vote
2 answers
373 views

Getting error while minting token to an account "Transaction simulation failed: Error proces...

My mint test cases are failing and I am clueless where it is going wrong pub fn mint(ctx: Context<MintToken>, params: MintTokenParams) -> Result<()> { // Check user balance first require!( …
blackhorse's user avatar
2 votes
1 answer
544 views

What is the meaning of custom program error code 0xc?

I am trying to test my program but I am getting Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xc Can someone suggest the poss …
blackhorse's user avatar

15 30 50 per page