Get Solana Address Balance

Through this endpoint the customer can receive the balance of a given address based on confirmed/synced blocks only. In the case where there are any incoming or outgoing unconfirmed transactions for the specific address, they will not be counted or calculated here. Applies only for coins.

Single Result - This endpoint returns only one single result. GET /blockchain-data/solana/{network}/addresses/{address}/balance

Path Parameters

  • Required
    network string

    Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software

    Example : testnet
    Possible Values : mainnet testnet
  • Required
    address string

    Represents the public address, which is a compressed and shortened form of a public key.

    Example : DCAKxn5PFNN1mBREPWGdk1RXg5aVH9rPErLfBFEi2Emb

Query parameters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Response schema

200 400 401 402 403 409 415 422 429 500
HTTP Status Code: 200
Content-Type: application/json

Represents the public address, which is a compressed and shortened form of a public key.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2023-04-25
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        confirmedBalance object
        • Required
          amount string

          Numeric representation of the total balance of the address

          Example : 53.8163231
        • Required
          unit string

          Represents the unit of the confirmed balance.

          Example : SOL

Credits Cost : 500 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/solana/testnet/addresses/DCAKxn5PFNN1mBREPWGdk1RXg5aVH9rPErLfBFEi2Emb/balance?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "confirmedBalance": {
                "amount": "53.8163231",
                "unit": "SOL"
            }
        }
    }
}