Questions tagged [account]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Accidentally sent Solana to an ATA (fluxbot) on Solflare & not my wallet [closed]

I accidentally sent SOLANA to an ATA (fluxbot) on Solflare. Coinbase couldn’t help me. How do I access the ATA?
user9433's user avatar
0 votes
1 answer
22 views

My wallet can't send sol to others and can't mint nft

I met a problem my sol address can't send out sol to another wallet but can send it into it, and my address can't mint nft. Really don't know what's with it. Really strange. My address is ...
user9385's user avatar
0 votes
0 answers
13 views

What's the best way to listen for epoch updates?

I want to generate a proof from the epoch vote accounts to the Epoch Accounts hash, so I was thinking of listening to epoch updates and then generating a proof. I'm aware that bank has a ...
Harsh Patel's user avatar
0 votes
0 answers
34 views

Account ownership is taken by the scammer [closed]

I lost my account ownership and I am not able to withdrawn my staked funds. Is there any way to change owner using private key and secret phrase ? I can import my wallet but I can`t sign any ...
Coşkun Kömürcü's user avatar
0 votes
0 answers
7 views

Error when trying to update an account on Solana built with anchor

Here's the error I am getting: Link to transaction: https://explorer.solana.com/tx/5LSyn7NfjK4me56nU8fiYVb9RGXCe7AJ7MBFYKBfcvxh35sLN9krkYU7fFLTJWWW6iz3aTpu3K4kXdhwAb8kydEq?cluster=devnet Here's the ...
denimcodes's user avatar
4 votes
2 answers
52 views

Why do some token accounts own themselves?

I was under the impression that accounts owned by users owned a set of token accounts which each represent one distinct token that they own - meaning token accounts would only be owned by a user. For ...
xxl's user avatar
  • 43
1 vote
1 answer
15 views

best way to convert `account_index` to address using rust rpc-client and JSON RPC response

When using the solana-rpc-client in Rust to retrieve a transaction, the output is EncodedTransactionWithStatusMeta. The metadata includes the following struct: pub struct UiTransactionTokenBalance { ...
S.R's user avatar
  • 141
1 vote
1 answer
119 views

what's the correct way to declare an account for program to receive and store SOL?

Demo bellowed is what I figure out to make program receive SOL. But it seem have room to improve, especially 'NewAccount', which look ugly, but I can't found property Account type to replace it. I ...
breeze wang's user avatar
3 votes
1 answer
52 views

In what context is the hash of a ed25519 public key used as an address?

According to the docs, a Solana address is one of the following: an ed25519 public key a program-derived account address (32byte value forced off the ed25519 curve) a hash of an ed25519 public key ...
Ahri's user avatar
  • 2,383
1 vote
1 answer
22 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
  • 1,438
2 votes
3 answers
178 views

Failed Token Develop and Lose Money :)

Before I start, I would like to apologize for writing a long message. I am a novice software developer who is just starting to learn Solana. Therefore, I wrote the whole story from start to finish ...
TryingToBeSolDev's user avatar
2 votes
1 answer
45 views

Why does the active stake plus the rent reserve not equal to the total balance? How to correctly calculate the total balance?

So I am trying to report the difference balances on an staking account. My assumption was: total balance = active stake + rent reserve However, this equation is not true when looking at the numbers in ...
sibabtcs's user avatar
0 votes
1 answer
30 views

The data that anchor' account stored surprise me, for a non-PDA account, it store all history input data. Why?

I play this https://beta.solpg.io/62d67703f6273245aca4f5fe example days ago. Just added more logs inside initialize() instruction. After invoke initialize() multiple times with different 'new_account' ...
breeze wang's user avatar
1 vote
1 answer
216 views

Transaction Error: Signature Verification Failed: Missing Signature For PublicKey

I'm building a transaction on devnet that previously worked when I tested my program. I don't think it's the program itself, but how I am passing down the signatures which is slightly different from ...
Brian M.'s user avatar
  • 111
1 vote
1 answer
28 views

Reducing calls to .load() in constraints

When using constraints with a zero-copy account that uses AccountLoader, you can reduce acc.load() calls like: #[account( mut, constraint = { let acc = some_acc.load()?;...
Whiteseal's user avatar
  • 2,562
0 votes
2 answers
67 views

Solana Crypto Retrieval

Recently I sent Solana to the following address: GJRs4FwHtemZ5ZE9x3FNvJ8TMwitKTh21yxdRPqn7npE I sent it from my Coinbase Wallet account, now it has come to my attention that crypto sent CAN NOT be ...
RubinSon's user avatar
2 votes
2 answers
52 views

How many PDA accounts can I create? Is it unlimited?

I am going to store huge number of record for my on-chain program. Each record's size is small (likely 100Bytes), but need to store many(maybe millions) records on-chain. From what I have known ...
breeze wang's user avatar
0 votes
2 answers
52 views

Different formats of Solana accounts

Is there a way to know whether an address is an token Program/Storage/Data/Vote/Stake/Withdraw account from the format only? If not, how can I find this out with the help of the node RPC? I guess I ...
sibabtcs's user avatar
1 vote
0 answers
53 views

Account:try_from with different Anchor versions

I have a program which is on 0.28.0, and it uses an 0.26.0 dep. It builds without issue. Let's say the deps look like: [dependencies] anchor-lang = "0.28.0" solana-program = "=1.16.23&...
Whiteseal's user avatar
  • 2,562
1 vote
0 answers
32 views

Is there a maximum number of pdas that can be owned by Solana account?

I am building an application and it is relatively heavy on the creation of PDAs. I will be using a private cluster, so the cost of PDA creation is irrelevant. But I am trying to understand the ...
david lampach's user avatar
0 votes
1 answer
71 views

ThawAccount Error: Invalid account state for operation

When I perform a transaction I get an error and log entries: 'Program log: Instruction: ThawAccount', 'Program log: Error: Invalid account state for operation', How to check whether an account is ...
Leo Loki's user avatar
  • 362
2 votes
2 answers
62 views

How to close account?

I am trying to close an account with a balance of 890880 lamport (getMinimumBalanceForRentExemption api result) for rent, and I send a transaction to transfer the 885880 amount via system transfer. ...
Koichi's user avatar
  • 61
1 vote
1 answer
45 views

Issues with Using AnchorSerialize and AnchorDeserialize Traits

so I'm looking to create an instruction that creates an account called GamePot that contains a field called TokenInfo that holds the data for what is meant to be any particular SPL token with a mint ...
Brian M.'s user avatar
  • 111
3 votes
1 answer
37 views

How to allocate `Optional` accounts on heap?

I am trying to use optional accounts and since there are many accounts, i tried boxing them. But looks like the derive macro panics when i try to box the optional accounts like below. escrow_account: ...
Dhruv D Jain's user avatar
0 votes
2 answers
47 views

What does it mean Garbage Collection?

I wonder what is Garbage Collection?. When an Account no longer has enough Lamports to pay its rent, it will be removed from the network in a process known as Garbage Collection. Someone let you know?....
Gus's user avatar
  • 21
2 votes
1 answer
132 views

What does it mean Lamport?

What does it mean Lamport?. How many Lamports is one Solana?. Is it important?. What is Lamport balance?. How to calculate it?. How many Lamports should I have in my account to be estimated rent ...
Gus's user avatar
  • 21
0 votes
1 answer
51 views

What's rent?. What's estimated become exempt?

I,d like to know what’s rent?. How to calculate it?. Does it work now?. Does it exist now?. When to become rent exempt?. I use Solflare and I’ve an account with more or less 200 Solana and I do ...
Gus's user avatar
  • 21
0 votes
1 answer
27 views

Is it possible to set up an account to point to another account?

I'm making an anchor program where I would like to make a user ID easily retrievable with their Pk, sequential ID or username. one way I thought is to make a PK link account (in case the seed for the ...
alex's user avatar
  • 1
0 votes
1 answer
33 views

Why choose Solana exchange instead of others? [closed]

I just log into this exchange and I need to understand why use this exchange
Christian Maraschin's user avatar
0 votes
0 answers
80 views

Embedded wallets, USDC and account rental

I'm evaluating Solana as an option to support Generate an embedded, user owned, wallet per sign-up (BYO as secondary option). Only deal with USDC in and between these wallets, i.e. no customer ...
uxcxdx's user avatar
  • 101
1 vote
1 answer
50 views

Is there a throttle in place for account creations or can I create accounts at 50k tps?

Other networks have throttles, I noticed there is a minimum balance on Solana, so does that mean as long as I have enough SOL I can create accounts at a rate of 50k tps? @ripatel
Michael's user avatar
  • 13
2 votes
3 answers
102 views

Extending struct fields in a PDA and ensuring compatibility

I need to extend the fields I have within a PDA. Some accounts are already live, so I want those to still be compatible with the new layout. As a simple illustrative example, consider this account ...
mega_creamery's user avatar
0 votes
1 answer
128 views

Account change listener is not working for phantom wallet

I am using this code given below in my react application to listen an account change event but facing issue as no response or error i am getting on changing account form phantom wallet .i have ...
rishab's user avatar
  • 1
1 vote
2 answers
54 views

Are enums with associated values permitted?

Not sure if this is really an anchor or solana related question, since I am able to compile, just not to run tests. I can run code and test against code that has an account that has following enum: #[...
mega_creamery's user avatar
1 vote
1 answer
48 views

Get all accounts from ledger

To obtain all account information from the ledger, I used the following command: solana-ledger-tool --ledger /mnt/ledger/ accounts However, only the following information is printed, and the account ...
Solextra's user avatar
0 votes
1 answer
77 views

How to parse changes of the balances in json of a TX?

I sent 0.13 SOL from one ordinary wallet to other. There's been no interraction with a smart contract, nor was it a token but SOL sent. Here's a part of a TX in its raw form which I've obtained via ...
Nondi's user avatar
  • 15
1 vote
0 answers
20 views

Geyser closed account notifications

When an account is closed, the notification that comes from the geyser plugins account_update method includes the account with owner set to System Program - regardless of who the owner was before it ...
liamvovk's user avatar
  • 169
1 vote
1 answer
33 views

should I split a large data account into smaller ones

I have an account that contains a lot of fields, 30+. Besides composability, is there any benefit to splitting this account into different accounts? Will it improve performance/transaction costs?
Jimii's user avatar
  • 1,438
0 votes
1 answer
77 views

About SystemProgram.assign

While I have a main account A and has its keypair. Then I use createWithSeed create one account derived account x, and asign it to one program C. Now the problem is : I want to change the account x's ...
xingyue's user avatar
0 votes
1 answer
40 views

How reliable is the accounts: &[AccountInfo] array is?

I am trying to learn solana development[native solana] and when reading some example programs I saw they all use the "accounts: &[AccountInfo]" in order to figure out the accounts ...
Yali Haviv's user avatar
3 votes
1 answer
135 views

How do you repopen a closed account?

If an account has been closed with the following anchor context: #[account( mut, close = user, seeds = [ SEED_SCHEMA.as_bytes(), &user.key().as_ref()...
mega_creamery's user avatar
1 vote
1 answer
106 views

"Access violation in stack frame 3 at address 0x200003ff0 of size 8 by instruction #35516" , even though I use zero copy on my account struct

This is my account struct pub struct ClaimRewards<'info> { #[account(init_if_needed, payer = payer, seeds = [OKUSEED.as_ref()], bump, mint::decimals = 6, mint::authority = mint)] pub ...
Abhishek Faliya's user avatar
1 vote
1 answer
50 views

Error: Invalid option while trying to fetch account data with anchor

I'm getting this error Error: Invalid option endTime at OptionLayout.decode (node_modules/@project-serum/borsh/src/index.ts:148:11) at Structure.decode (node_modules/buffer-layout/lib/...
Abhishek Faliya's user avatar
1 vote
0 answers
46 views

'Program failed to complete: Instruction passed to inner instruction is too large (12884933932 > 1280)', Getting this error [duplicate]

I'm getting this error Program logged: "Instruction: CreateVester" > Program consumed: 5565 of 200000 compute units > Program returned error: "Instruction passed to inner ...
Abhishek Faliya's user avatar
7 votes
2 answers
259 views

How to correctly read data from a Zero Copy account

I'm having trouble reading data in the client from a program with a zero copy account. I've defined the account as follows: #[account(zero_copy)] #[repr(packed)] pub struct EventQueue { header: ...
rumika howdie's user avatar
4 votes
1 answer
242 views

Why does `solana program show <address>` and `solana accounts <address>` return different values for the `data length` and `balance` fields

Originally asked in the SolanaU discord. Is there a reason why the Solana CLI will return different values for solana program show and solana account? solana program show ...
Jimii's user avatar
  • 1,438
2 votes
3 answers
2k views

How do I close a Solana Account?

We can easily close PDAs to redeem their rent to their owner, however what I'm wondering is can the same be done for a normal, on-curve Solana account? From what I can see once you've sent the minimum ...
Ahri's user avatar
  • 2,383
4 votes
1 answer
109 views

what is ledger space in solana?

from here On Solana, State Compression is the method of creating a "fingerprint" (or hash) of off-chain data and storing this fingerprint on-chain for secure verification. Effectively using ...
Yilmaz's user avatar
  • 1,071
0 votes
1 answer
37 views

How to ensure unique u16 IDs for accounts?

I'm storing a vector of u16 user IDs. I decided not to store public keys in vector, which I can use as ids or get rid of ids completely instead, however public keys are 32 bytes and will have limited ...
Gmer's user avatar
  • 75
2 votes
1 answer
105 views

What dataLength to use for getMinimumBalanceForRentExemption() for a SOL account?

According to the Solana documentation the minimum balance/amount to be send to new SOL account can be calculated using getMinimumBalanceForRentExemption() getMinimumBalanceForRentExemption() takes a ...
mahnunchik's user avatar