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

# Get Solana delegation status

> Retrieves the delegation status for a Solana token account, including information
about the token balance, delegate address, and delegated amount.

**Supported chains:** Solana Mainnet and Solana Devnet only.




## OpenAPI

````yaml /openapi/custodian-api.yaml get /custodians/me/clients/{clientId}/chains/{chain}/delegation/status
openapi: 3.1.0
info:
  title: Portal Custodian API
  version: '3.0'
  description: >
    The Portal Custodian API provides endpoints for managing clients, building
    transactions,

    retrieving wallet data, managing delegations, alert webhooks, and gas
    sponsorship.

    All endpoints require authentication via a Portal API Key (also known as a
    Custodian API Key)

    passed as a Bearer token.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Portal API Key as a Bearer token in the `Authorization` header
    of every request.


    ## Chain ID Format

    Chain parameters use either friendly names (e.g. `ethereum`, `solana`) or
    CAIP-2 format

    (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). When using
    CAIP-2 format

    in URLs, ensure the colon is URI-encoded (`%3A`).
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Clients
    description: Create and manage Portal clients
  - name: Transactions
    description: Build and evaluate blockchain transactions
  - name: Wallet Metadata
    description: Retrieve wallet balances and NFTs
  - name: Wallet Shares
    description: Manage backup shares and wallet ejection
  - name: Delegations
    description: Manage token delegations and delegated transfers
  - name: Session Keys
    description: Build and send EIP-7702 session key user operations
  - name: Alert Webhooks
    description: Manage alert webhooks, external addresses, and replay failed events
  - name: Gas Sponsorship
    description: View and manage gas sponsorship across chains
paths:
  /custodians/me/clients/{clientId}/chains/{chain}/delegation/status:
    get:
      tags:
        - Delegations
      summary: Get Solana delegation status
      description: >
        Retrieves the delegation status for a Solana token account, including
        information

        about the token balance, delegate address, and delegated amount.


        **Supported chains:** Solana Mainnet and Solana Devnet only.
      operationId: custodianGetDelegationStatus
      parameters:
        - $ref: '#/components/parameters/clientId'
        - $ref: '#/components/parameters/chain'
      responses:
        '200':
          description: Delegation status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DelegationStatusResponse'
              example:
                data:
                  ownerAddress: 2qcnuxjA5fgMSgaUsg9w4eE2DBkZUTxYXQC8YMyt2XDV
                  tokenAccount: CND4K6vZUZBp743UCD6JH1VHWuYCq4gwGYHi6fmPb7de
                  tokenMint: 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
                  tokenSymbol: USDC
                  balance: '0.010000'
                  balanceRaw: '10000'
                  hasDelegate: true
                  delegateAddress: C9DWdoaACTY7EpHUgMRfKZpExBhnSavn5Nz3vm17Dooa
                  delegatedAmount: '0.001000'
                  delegatedAmountRaw: '1000'
                metadata:
                  chainId: solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    clientId:
      name: clientId
      in: path
      required: true
      description: The unique identifier of the client.
      schema:
        type: string
    chain:
      name: chain
      in: path
      required: true
      description: >
        The blockchain chain identifier. Use either a friendly name or CAIP-2
        format.

        When using CAIP-2 format in URLs, ensure the colon (`:`) is URI-encoded
        as `%3A`.


        **Supported chains:**

        - `ethereum` (`eip155:1`)

        - `sepolia` (`eip155:11155111`)

        - `base` (`eip155:8453`)

        - `base-sepolia` (`eip155:84532`)

        - `polygon` (`eip155:137`)

        - `polygon-amoy` (`eip155:80002`)

        - `celo` (`eip155:42220`)

        - `celo-alfajores` (`eip155:44787`)

        - `monad` (`eip155:143`)

        - `monad-testnet` (`eip155:10143`)

        - `solana` (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`)

        - `solana-devnet` (`solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1`)

        - `tron` (`tron:mainnet`)

        - `tron-nile` (`tron:nile`)

        - `tron-shasta` (`tron:shasta`)

        - `stellar` (`stellar:pubnet`)

        - `stellar-testnet` (`stellar:testnet`)

        - `bitcoin-segwit` (`bip122:000000000019d6689c085ae165831e93-p2wpkh`)

        - `bitcoin-segwit-testnet`
        (`bip122:000000000933ea01ad0ee984209779ba-p2wpkh`)
      schema:
        type: string
      examples:
        ethereum:
          value: ethereum
          summary: Ethereum mainnet (friendly name)
        eip155:
          value: eip155:1
          summary: Ethereum mainnet (CAIP-2)
        solana:
          value: solana
          summary: Solana mainnet (friendly name)
  schemas:
    DelegationStatusResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            ownerAddress:
              type: string
              description: The Solana address that owns the token account.
            tokenAccount:
              type: string
              description: The Solana PDA of the token account.
            tokenMint:
              type: string
              description: The mint address of the SPL token.
            tokenSymbol:
              type: string
            balance:
              type: string
              description: Total balance (human-readable).
            balanceRaw:
              type: string
              description: Raw balance in smallest unit.
            hasDelegate:
              type: boolean
              description: Whether the token account has a delegate.
            delegateAddress:
              type: string
              description: The delegate address, if any.
            delegatedAmount:
              type: string
              description: Amount delegated (human-readable).
            delegatedAmountRaw:
              type: string
              description: Raw delegated amount.
        metadata:
          type: object
          properties:
            chainId:
              type: string
              description: CAIP-2 chain ID for Solana.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Portal API Key (Custodian API Key). Pass as a Bearer token in the
        Authorization header.

````