Skip to main content

Questions tagged [pda]

The tag has no usage guidance.

0 votes
0 answers
23 views

Simple program fails Error: memory allocation failed, out of memory, consumed 2474 of 200000 compute units

I'm trying to write a program to be able to init and mint different tokens. So I pass dynamic seed during program invocation as a parameter, but somehow running out of memory in the mint_tokens ...
Scott's user avatar
  • 33
0 votes
1 answer
11 views

Transfering sol from pda to a hardcoded account pubkey

Can i transfer money from a program owned PDA to a hardcoded pubkey without AccountInfo of the receiver ? Or do I NEED to pass it from the client? let hardcoded_pubkey = Pubkey::from_str("----...
DumSolProgramer's user avatar
0 votes
1 answer
33 views

Transfer SOL out of PDA owned wallet account

Basically I'm trying to figure out to transfer SOL out of a wallet account which is owned by a PDA. the PDA is in turn owned by my program. I've tried invoke_signed, my seeds are all correct, and I ...
xxxdropoutxxx's user avatar
1 vote
1 answer
19 views

Transfering money from a pda to a user wallet with native rust

Sorry for a noob question but im writing a solana program without anchor. And I'm having a problem with transfering sol from pda to a wallet in a program. pub fn process_instruction( program_id: &...
user21930's user avatar
2 votes
1 answer
85 views

How to create shard accounts to manage "unlimited" account size

Since there is a limitation inside Solana transactions (1kb), and Solana account (1Mb), I'm not able to create a huge account ^^ Someone suggests me to open a new question: Handle big vector ...
GoT's user avatar
  • 75
0 votes
1 answer
29 views

Is there an atomicity problem when using PDA to store user data collection?

As stated, if I use PDA (Program Derived Address) to store user data, do I face transactional issues similar to traditional databases, where my version might get updated by another user before I save, ...
user8583445's user avatar
1 vote
1 answer
55 views

how i transfer my spl token by js

Hello i need to write a program that transfer token from my wallet to another wallet i wrote here is code const {clusterApiUrl, Connection, Keypair, LAMPORTS_PER_SOL, PublicKey} = require('@solana/...
Hich's user avatar
  • 51
1 vote
2 answers
66 views

Struct field "token_account_owner_pda" is unsafe, but is not documented

I was following the Token Vault tutorial on Solana Playground. It compiled fine on SolPG but when I compile this program on my system, I get the following error about unsafe account. I want to make ...
Anas's user avatar
  • 51
1 vote
1 answer
50 views

Error Number: 2006. Error Message: A seeds constraint was violated

My rs part: #[derive(Accounts)] pub struct CreateLottery<'info> { #[account( init, payer = authority, space = 4 + 32 + 8 + 4 + 1 + 4 + 1 + 8, // 8 for account ...
André Garcia's user avatar
0 votes
2 answers
32 views

Pay for PDA by a centralized wallet

I'm trying to build an app that will hold a user's wallet private key to sign for transactions and pay for the account from a centralized wallet that I own. I'm trying to avoid them having to approve ...
Christopher Nolan Buckley's user avatar
2 votes
1 answer
54 views

Anchor pass parameters to PDA creation from initialization

I'm getting crazy on passing a parameter to the seed of a PDA. That's the simplified program: use anchor_lang::prelude::*; declare_id!("JAe3BFznJPTWu4JF1x1JQwzJ29b9jZJ9gPANJTdY2qUf"); #[...
Francesco's user avatar
1 vote
1 answer
76 views

Wrapping Sol results into Error: IncorrectProgramId

I have a PD vault account, I transfer some amount of SOL to WSOL token account for this vault and then I try to call the SyncNative instruction that results into err: 'Program ...
Nika Pestvenidze's user avatar
2 votes
2 answers
65 views

Anchor Test has Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0

So if I anchor build and then anchor deploy on the devnet and then use anchor test --skip-build --skip-deploy since I already built and deployed everything before, I find the first time around the all ...
Mark's user avatar
  • 45
1 vote
1 answer
42 views

Not able to read the updated value in a Solana Data Account

I have a simple solana greeting-counter program, I have it deployed locally. When I am calling from my typescript code I am able to do pretty much all the transactions and verify them. Except the last ...
Md Tauhidul Islam's user avatar
1 vote
1 answer
45 views

Account creation on Solana

Suppose I have a PDA address that hasn't been initialized yet and I send SOL to it, Am I correct in assuming that this account will exist? Who will have control over this account? Will it still be by ...
Jimii's user avatar
  • 3,907

15 30 50 per page
1
2 3 4 5
18