Skip to main content

Questions tagged [staking]

The tag has no usage guidance.

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

Allow a holder to freeze/thaw their own SPL token token account

I am looking at developing a dapp that rewards holders based on the length they keep their associated token account frozen for. I have tried the below code in my nextjs/react app, however I can only ...
techtana's user avatar
2 votes
1 answer
24 views

Improve performance of getParsedProgramAccounts for StakeAccount

Using the code outlined https://solanacookbook.com/references/staking.html#get-stake-amount I am finding the getParsedProgramAccounts call is slow for the StakeProgram, taking approximately 4 minutes ...
Angus Scott's user avatar
0 votes
0 answers
21 views

ANY 3rd Party Solutions for creating/managing Staking/Yielding program for own SPL-tokens?

Are there any 3rd party solutions (eg. Metaplex, Helius etc.) that provide simple tooling for creating and managing staking/yielding programs for own SPL-tokens?
GZERO's user avatar
  • 11
0 votes
1 answer
112 views

How to create a solana token staking program with @solana/spl-token?

I need to create a spl token staking program with the following logic: The token owner stakes the spl-tokens We save the price at which tokens were staked off chain The user can only withdraw tokens ...
Anas's user avatar
  • 41
0 votes
0 answers
23 views

How to broadcast Stake transaction

I'm trying to write a script to stake SOL from a Fireblocks wallet using the Blockdaemon validator, and I'm stuck at broadcasting the transaction Here is the process that I followed so far: Call the ...
Pierre's user avatar
  • 101
0 votes
0 answers
27 views

Unable to Withdraw from Staking Account Due to Withdraw Authority Issue

I started staking with Solana using the Phantom Wallet. When staking is initiated through the Phantom Wallet, no private key is generated for the staking account itself. However, due to some glitch, ...
haru S's user avatar
  • 1
0 votes
0 answers
16 views

Can we create Staking Transaction or StakeProgram transaction using Version0?

The legacy staking program transaction is working fine, But I want to update to the transaction type Version0. Below code created a transaction hash successfully, but transaction is not found in ...
Divyang Khatri's user avatar
0 votes
1 answer
23 views

Staking solana error

I am currently staking solana using phantom wallet but now I want to unstake. The thing is, it says the staking is active and I can't deactivate it. When I click "unstake" button, it starts &...
Mystak3's user avatar
0 votes
1 answer
20 views

Check information on a staking account in a smart contract

If I have a smart contract (written in Anchor), is it possible for me to read a staking account and discover information about it: delegated stake, the delegated vote account address, the stake ...
pepeIKO's user avatar
  • 396
1 vote
1 answer
35 views

How to read validator information using the vote address?

I'm trying to read user staked validator information using @solana/web3.js. I was able to read the stake accounts for the given wallet address but having trouble with reading staked validator ...
Kaveen Laksitha's user avatar
0 votes
0 answers
10 views

Best way to take a snapshot of a token like Marinade, Blaze etc does, what should be the best approach for that?

I have a create a Stake pool .I want to take a snapshot of the users and their holdings of the pool token like Marinade and Blaze does.What should be the best approach for that? I am creating this ...
Abhishek Faliya's user avatar
0 votes
1 answer
25 views

Who owns the private key of delegated Staked Accounts?

I see on solscan.io account pages that most of them have isOnCurve false, but my delegated staked account has isOnCurve true. Does this mean someone has the private key of this account? Who? Usual ...
Unicornist's user avatar
0 votes
1 answer
45 views

How is delegated stake balance calculated?

I created my staking account with 1 + 0.00228288 (rent-exempt) SOL. So that my initial delegated stake was exactly 1 SOL. After 6 epochs, my balance is 1.004707281. And my delegated stake is 1....
Dante Alighieri's user avatar
2 votes
1 answer
18 views

Stake warmup and cooldown - is it possible to retrospectively get this information?

We are trying to retrospectively build staking activation/deactivation history for an account. In other words, we want to capture events which change amount of active and inactive stake. Some of them ...
DimaA6_ABC's user avatar
1 vote
1 answer
24 views

Does spl-stake-pool support Token-2022 standard? I want my xsol or ysol to be of Token-2022 standard, Is it possible?

As in the title when i stake my sol to the stake-pool, The token that i get in return should be of Token-2022 standard. Is it possible? I don't have much idea of the spl-token pool.
Abhishek Faliya's user avatar
0 votes
0 answers
22 views

What causes the error "unable to confirm transaction" when creating a staking account on mainnet? [duplicate]

I'm following the Solana Validator Documentation, but failing to create a new staking account. I keep getting the following error: Error: unable to confirm transaction. This can happen in situations ...
kwazuki's user avatar
0 votes
2 answers
27 views

Can locked SOL be transfeered to new withdraw authority without custodian?

I am trying to switch --stake-authority and --withdraw-authority of a locked stake account to a ledger from a hot wallet. I can use delegate stake to set a delegate but wondered about going further ...
T3chie's user avatar
  • 85
2 votes
1 answer
32 views

Who initiates the reward claim transaction to delegated stake accounts?

If we have a staking account (for example this one, 98U, which delegates to Fii) we can see its staking and withdrawal authority at the time of this question is FF7. However, if we look at the ...
Ahri's user avatar
  • 4,150
1 vote
1 answer
52 views

Why is it impossible to make a reflection token ("frictionless yield") on Solana?

I'm getting conflicting answers from multiple sources on this to the point where I've concluded it's practically impossible to create a custom token on Solana that: Takes a fee from every transfer (e....
cosbyPlays's user avatar
1 vote
1 answer
157 views

how to swap between spl tokens inside rust anchor program

I'm going to implement spl token swap with rust inside Anchor project. Basically it's about compounding logic in staking project, so I have to swap reward tokens into stake token and add it to staking ...
cablespecific's user avatar
0 votes
1 answer
67 views

Issue with staking via wallet adapter

Need to create stake account and then delegate via wallet-adapter in NextJS. Took some code from Solana Cookbook. Getting an issue after accepting transaction in any wallet, crashes at the line ...
Mukhtar's user avatar
  • 43
1 vote
1 answer
14 views

getInflationRewards returning 0.04% for stake yield

Quick question , I am trying to calculate staking rewards for an account on a validator. For such thing I am using a simple TS script that users @solana/web3.js package. I had understoo that the ...
Pablo Adell's user avatar
1 vote
1 answer
224 views

How to write factory pattern staking pool solana program

My goal is to let users to create staking pools where people can stake SOL and earn reward tokens, so simply put something like staking pool factory smart contract on Ethereum. As far as I figured I'm ...
cablespecific's user avatar
1 vote
2 answers
80 views

spl-stake-pool create-pool: RPC response error -32002

I try to create a staking through this article in Dev network. But I meet problem when I use this command: levi@LEVI-104-PC:/opt/solana/solana-liquid$ spl-stake-pool create-pool --epoch-fee-...
LEVI_104's user avatar
2 votes
1 answer
125 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
3 votes
1 answer
1k views

Creating an SPL Staking Contract + Understanding Staking

I'm working on a basic SPL staking contract for a token i've created on devnet. Pretty simple goal: lock up tokens for x amount of time, claim, unstake. As this is all relatively ~basic~ functionality,...
blockchief's user avatar
2 votes
1 answer
75 views

is it possible to do non custodial staking with pnfts (freeze accounts)?

pnfts are in frozen accounts by default, and only metaplex program can thaw / freeze them again. But then, my question is : is it possible to do non custodial staking ? If i can't freeze the account ...
Effe2's user avatar
  • 1,200
0 votes
1 answer
45 views

Just starting on Solana and would greatly appreciate any tips!(:

I am just starting with Solana and if anyone could give me any pointers or some sort or direction that would be greatly appreciated!
Poseidon's user avatar
0 votes
1 answer
547 views

Staking deactivating

I have deactivated my staking of sol 2 days ago but it is still showing deactivating. I'm new to Phantom so I Don't know how much time will will take to compete the Process. If anyone knows then ...
Boma Manik's user avatar
0 votes
2 answers
71 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
430 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
23 views

Verifying staking addresses of voter addresses in code returning no staking addresses (code issuse)

Hey guys I am trying to get a list of addresses staking to a validator. I can verify on an explorer there are addresses, but in my code I always return no addresses associated. Can anyone see what Im ...
Michael's user avatar
  • 13
2 votes
1 answer
129 views

Solana inflation mechanism design

When Solana quotes a percentage inflation figure, is that to be understood as annual inflation of the current circulating supply? For example, if inflation is 10% and current circulating supply is 400 ...
yeehaa's user avatar
  • 21
0 votes
1 answer
43 views

How to test balance change of my staking program

I am following a tutorial to make a staking app and I want to test the functionality of my instruction. I have tried "getTokenAccountBalance", but it remain unchanged before and after the ...
Tropical Dog's user avatar
0 votes
2 answers
216 views

Sol staking question

When viewing my staking account it appears that my authority address has changed and my main address is no longer it How do I change the authority back to my main address and is my main address still ...
ScrapHouse of Life CCC's user avatar
1 vote
1 answer
48 views

Unable to get inflation/staking rewards after Epoch 398

I'm trying to gather all the staking rewards I've received for tax purposes. I've been calling getInflationReward, which worked fine up until epoch 398. For some reason, it returns null for all the ...
Volkan Paksoy's user avatar
1 vote
0 answers
47 views

Any good reason not to withdraw vote account rewards?

Running a validator and getting rewards to the vote account balance, is there any reason not to withdraw them? Any benefit or profit, ranking or something else that worth to save the incoming reward ...
recoverySol's user avatar
0 votes
1 answer
322 views

Cool Down period for Stakes

I'm looking for the number of epochs a stake is locked after it has been deactivated. Is this number fixed or can it vary. i'm aware of the warmup/cooldown-rate, but to simplify the assumption is that ...
mazi's user avatar
  • 5
1 vote
1 answer
807 views

Staking in python?

I'm currently trying to use this branch of Solana-py to create a script which allows me to automatically find the best validator and stake my SOL with it. I'm having an issue when trying to pass the ...
Morgandril's user avatar
2 votes
1 answer
226 views

System Program: Withdraw Stake from delegated stake account

I'm struggling with understanding of what's happened in tx 1GQA7ZcU63Wqm5gUUkhCnKa8dwzwK91c5bEPKcUvesgmkbauU5nH865PKXkUhD8s8HmTV1URtDG6WqYN3h9z5ET As I can see, System Program: Withdraw Stake was ...
Gohnny's user avatar
  • 23
5 votes
2 answers
260 views

When staking SOL on-chain... questions about Stake Accounts

This is a question regarding my stake account, not my regular SOL wallet. I am aware that rewards that are collected automatically and re-staked. However, my question has to do with how that happens. ...
bricarp's user avatar
  • 51
3 votes
0 answers
17 views

Track all rewards paid to validator including it's delegators [duplicate]

I'm trying to find the average amount of staking rewards paid to a validator across an epoch. I am aware of the method getInflationReward, and I'm able to pass that method a validators vote account ...
Cambro's user avatar
  • 71
3 votes
1 answer
167 views

What are common practices for solana staking account address generation for wallet developers?

In order to delegate funds they must be moved into a staking account. The staking account address can be anything, even random bits as long as it doesn’t collide with any other staking account address....
Brian Bradley's user avatar
0 votes
1 answer
836 views

Manual unstake a Solana NFT

So, with the project I'm working with we have 2 staking sites, an old one (https://stake.wobblebug.info/) and a new one (https://wobblebug.io/stake). The developer for the old one there was a number ...
Beardo's user avatar
  • 1
2 votes
1 answer
397 views

How to import METADATA_PROGRAM_ID. (Buildspace Solana Staking Anchor course)

I'm doing the Anchor Staking part of the solana Buildspace course. I get this error when running the first test: ReferenceError: METADATA_PROGRAM_ID is not defined This is the Anchor Smartcontract I ...
Matti's user avatar
  • 129
2 votes
1 answer
71 views

Rewards after merge staking accounts

I want use merge staking accounts. How I check but after merge staking accounts I lost some rewards. const trx = StakeProgram.merge({ stakePubkey: stakePubKey, //destination ...
Oksana's user avatar
  • 461
2 votes
1 answer
61 views

How to track the total SOL rewards? I see 4 reward types, but I'm not sure which to use

I see 4 reward types, but I'm not sure which to use. I'd like to track total rewards paid out. Fee, Rent, Staking, Voting, To my understanding: Fee -> Is this related to transaction fees, if so ...
solnoob's user avatar
  • 21
2 votes
1 answer
47 views

Using VersionedTransactions with staking

I want to move to VersionedTransaction. But methods like StakeProgram.delegate, StakeProgram.deactivate return Transaction. How to use VersionedTransaction with staking?
Oksana's user avatar
  • 461
1 vote
2 answers
390 views

Getting (os error 3) The system cannot find the path specified when trying to build a staking pool

So I'm following this video https://www.youtube.com/watch?v=NbmA6GLDEFk, and trying to build a demo staking pool using the scripts at https://github.com/solana-labs/solana-program-library/tree/master/...
Anish Mukherjee's user avatar
0 votes
2 answers
94 views

Minimum balance for stake account

I want to split staking accounts, but before I should check minimum balance of stake accounts. What is minimum balance for staking accounts ?
Oksana's user avatar
  • 461