-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add a way to get stake minimum delegation from RPC #24690
Comments
@mvines There is already a solana/sdk/program/src/stake/tools.rs Lines 13 to 17 in edf3f05
Is that where you were thinking? Since Rust doesn't allow function overloading, is there a way we've handled similar conflicts in the past? Also, I put the function in solana-stake-program because it is used in the implementation when the solana/programs/stake/src/stake_instruction.rs Lines 402 to 413 in edf3f05
Is it still best to move the fn? |
Ah, I see. My initial comment was made from the perspective of an off-chain user who's looking through They don't really have a nice way to determine the minimum delegation currently -- downside of our decision to not use a Sysvar. Their current choices seem to be:
|
I was wondering if I should add a command to the CLI to get the stake minimum delegation. Would that be useful in this case? |
An |
How about an |
get_minimum_delegation()
into solana-program
Problem
From RPC, we cannot query the minimum stake delegation.
Proposed Solution
Add a new RPC endpoint.
We cannot use
simulate_transaction()
here, as it fails when loading accounts.Previous proposed solution
Originally posted by @CriesofCarrots in #24690 (comment)
Initial Description
Originally posted by @mvines in #24660 (comment)
The text was updated successfully, but these errors were encountered: