Questions tagged [lamports]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

Split transactions in a single anchor function

Let's say I have PDA A, PDA B, and PDA C. PDA A has lamports. And I like to split lamports to B and C. Is it possible in a single anchor function to transfer lamports from A to B and C? // TRANSACTION ...
ZeroNine's user avatar
  • 403
0 votes
2 answers
32 views

Log gas / compute usage in anchor program test

What is the canonical method for logging the amount of SOL used in a transaction? I'm writing some anchor tests and wanted to get some understanding of which transactions / fns incur more costs than ...
AceGravity'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
135 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
3 votes
1 answer
297 views

Delete PDAs and return all lamport

I was looking at the previous posts in this same forum and I think there are some caveats to be made on this topic.
Mateo Lafalce's user avatar
1 vote
1 answer
49 views

Can we withdraw lamports from a PDA which contains data?

U cannot withdraw lamports from a pda that contains data , u can only withdraw lamports from pda or normal account which is owned by system program and it should not contain any data at all...
Nagaprasad Vr's user avatar
2 votes
1 answer
468 views

Is it possible to transfer absolutely the entire balance of the Solana wallet?

Not SPL token. For example: Create a new Solana address Transfer 1 SOL from my other wallet to this address Return the entire amount received back to my main wallet (minus two transfer fees of 0....
Storm's user avatar
  • 23
2 votes
1 answer
83 views

How to lock lamports to the game and allow winner to withdraw the winning reward

I'm learning Solana with Anchor and decided to implement Roshambo (rock, paper and scissors) game as part of my journey. I'd like to allow players to place some bid on game where winner collects all ...
jakub.bogacz's user avatar
5 votes
1 answer
280 views

Can we safely represent lamport amounts in javascript using a number?

Intuition tells me no, as total circulating supply of SOL at the time of this writing is 357,157,711.70 ≈ 3.6 * 10^8 according to Coinmarketcap 1 SOL = 1,000,000,000 = 10^9 Lamports Max safely ...
Ahri's user avatar
  • 2,383
1 vote
2 answers
248 views

What is the rent exemption minimum for a SystemProgram account created by a SOL transfer

Trying to figure out the exact lamports needed to make a "wallet" (account created by a SOL transfer) rent exempt. There are lots of contradictory information on this topic, some sources say ...
jac0xb.sol's user avatar
4 votes
2 answers
768 views

What is lamports in creating transactions?

I found this below at this, to send SOL from one wallet to another. const transferTransaction = new Transaction() .add(SystemProgram.transfer({ fromPubkey: alice.publicKey, toPubkey: ...
ratib90486's user avatar
3 votes
1 answer
175 views

Can you create accounts with less lamports than the rent-exempt minimum?

Accounts on Solana are considered rent-exempt if they hold at least the cost of their rent for 2 years (based on the size of the account's data). Is it possible to create an account that's not rent-...
Joe C's user avatar
  • 1,026
5 votes
1 answer
115 views

Solana rent exempt account, period of exemption

Hey so we are all said to make rent-exempt accounts at creation time but is the rent exemption permanent? If not, how is the top-up handled after the exemption period? Like as soon as it ends you add ...
Nabeel Naveed's user avatar