LogoLogo
LogoLogo
  • Solana Staking API (GraphQL)
  • Overview
  • Supported Networks
  • GraphQL Base URL
  • Getting Started
  • Authentication
    • Obtaining an API Key
  • Mutation
    • SolanaStakeIntent
    • SolanaDeactivateIntent
    • SolanaCancelDeactivateIntent
    • SolanaWithdrawalIntent
    • SolanaCancelWithdrawalIntent
  • Query
    • SolanaGetStakeAccounts
    • SolanaGetDeactivationIntents
    • SolanaGetDeactivatableAmount
    • SolanaGetWithdrawableAmount
    • SolanaListWithdrawalIntents
Powered by GitBook
On this page
  1. Query

SolanaGetDeactivatableAmount

POST SolanaGetDeactivatableAmount

Returns the total staked amount that can be deactivated across all wallets of the user. If any prior deactivation intent was left unsigned, it will be automatically canceled.

You can specify the optional wallets parameter to get the total deactivatable amount in specific wallets.

Headers

Name
Value

Content-Type

application/json

Authorization

<API Key>

Body

### 🧪 Example Query

```graphql
mutation SolanaCancelDeactivateIntent {
  SolanaCancelDeactivateIntent(
    input: {
      network: "devnet",          # String!
      deactivate_intent_id: "..." # String!
    }
  ) {
    code
    message
  }
}
{
  data: {
    CancelIntentResponse: {
      code: 500,                          # Number
      message: "Invalid public key input" # String
    }
  }
}
{
  data: {
    ErrorResponse: {
      __typename: "ErrorResponse",        # String
      code: 500,                          # Number
      message: "Invalid public key input" # String
    }
  }
}

Last updated 1 month ago

Page cover image