> ## Documentation Index
> Fetch the complete documentation index at: https://docs.p2p.org/llms.txt
> Use this file to discover all available pages before exploring further.

# getStakingAccounts()

> Return information about staking accounts.

This method calls [`/solana/{network}/staking/getStakingAccounts`](/reference/solana-staking-get-staking-account) and returns a list of accounts that can be used for staking in the Solana network.

## Parameters

<CodeGroup>
  ```javascript JavaScript theme={null}
  await client.solana.getStakingAccounts({
    stakeAuthorities: [
      '9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
      'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
    ],
    stakeAccounts: [
      '9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
      'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
    ],
    withdrawAuthorities: [
      '9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw',
      'AaMC5y1RofbY3unyrahRzyCzsesp7rfGuaGegbAg1Hxb',
    ],
    status: 'active',
  });
  ```
</CodeGroup>

|                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **network** *string*<br />Solana network:<br />`mainnet-beta` — production network.<br />`testnet` — testnet.<br />If not specified, the method will use the default value from the [constructor](/docs/staking-sdk-stakingapiclient) . |
| **stakeAuthorities** *string\[]*<br />List of account addresses that can perform staking operations with staking accounts.                                                                                                              |
| **stakeAccounts** *string\[]*<br />List of staking account addresses.                                                                                                                                                                   |
| **withdrawAuthorities** *string\[]*<br />List of account addresses that can perform withdrawal operations with staking accounts.                                                                                                        |
| **status** *string*<br />Staking account status: `active`, `inactive`, `activating`, `deactivating`.                                                                                                                                    |

## Result

In the resulting object, the field `accounts` is a list of objects, each representing a staking account.

<CodeGroup>
  ```json JSON theme={null}
  {
    "accounts": [
      {
        "stakeAccount": "Fw82VhehY4yazX6tcZfNQWTsqHDSXaGmwVkbJYegDMbG",
        "stakeAuthority": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
        "withdrawAuthority": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
        "voteAccount": "9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw",
        "status": "active",
        "amount": 1,
        "amountWithoutRentExemption": 1,
        "stakeAmounts": {
          "active": 1000000000000,
          "inactive": 1000000000000
        }
      }
    ]
  }
  ```
</CodeGroup>

|                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **stakeAccount** *string*<br />Account address that stores tokens for staking.                                                                                                        |
| **stakeAuthority** *string*<br />Account address that can perform staking operations with the staking account.                                                                        |
| **withdrawAuthority** *string*<br />Account address that can perform withdrawal operations with the staking account.                                                                  |
| **voteAccount** *string*<br />Vote account address.                                                                                                                                   |
| **status** *string*<br />Stake account status: `active`, `inactive`, `activating`, `deactivating`.                                                                                    |
| **amount** *number*<br />Amount of tokens to stake in lamports (1 SOL = 10⁹ lamports).                                                                                                |
| **amountWithoutRentExemption** *number*<br />Amount of tokens to stake in lamports (1 SOL = 10⁹ lamports) without rent exemption.                                                     |
| **stakeAmounts** *object*<br />Information about delegated stake amounts.<br />`active` — amount of active stake in lamports.<br />`inactive` — amount of inactive stake in lamports. |


## Related topics

- [stake()](/docs/staking-sdk-solana-stake.md)
- [Staking API reference](/reference/solana-staking-stake.md)
