getStakingAccounts()
Return information about staking accounts.
This method calls /solana/{network}/staking/getStakingAccounts and returns a list of accounts that can be used for staking in the Solana network.
Parameters
await client.solana.getStakingAccounts({
stakeAuthorities: [
'9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
],
stakeAccounts: [
'9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
],
withdrawAuthorities: [
'9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
],
status: 'active',
});network string, required |
stakeAuthorities string[] |
stakeAccounts string[] |
withdrawAuthorities string[] |
status string |
Result
In the resulting object, the field accounts is a list of objects, each representing a staking account.
{
"accounts": [
{
"stakeAccount": "Fw82VhehY4yazX6tcZfNQWTsqHDSXaGmwVkbJYegDMbG",
"stakeAuthority": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
"withdrawAuthority": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
"voteAccount": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
"status": "active",
"amount": 1,
"amountWithoutRentExemption": 1,
"stakeAmounts": {
"active": 1000000000000,
"inactive": 1000000000000
}
}
]
}stakeAccount string |
stakeAuthority string |
withdrawAuthority string |
voteAccount string |
status string |
amount number |
amountWithoutRentExemption number |
stakeAmounts object
Information about delegated stake amounts. |
What's next?
- stake()
- Staking API reference
Updated about 19 hours ago