Skip to main content

All Questions

Tagged with
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 ...
SKS's user avatar
  • 21
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 ...
SKS's user avatar
  • 21
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?
Mullane Benjamin's user avatar
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?
Jimii's user avatar
  • 3,907
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....
Priyanshu Mishra's user avatar
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 ...
kekti's user avatar
  • 55
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?
kekti's user avatar
  • 55
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 ...
kekti's user avatar
  • 55
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, ...
SACRED- ESP's user avatar
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 ...
user2873314's user avatar
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 ...
mezzosoprano'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
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
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

15 30 50 per page