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

SolanaGetWithdrawableAmount

POST SolanaGetWithdrawableAmount

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

You can specify the optional wallets parameter to get the total withdrawable 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