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

# getAccountInfo



## OpenAPI

````yaml getaccountinfo post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana JSON RPC API
servers:
  - url: https://rpc-mainnet.solanatracker.io
security: []
paths:
  /:
    post:
      summary: Returns all information associated with the account of provided Pubkey
      operationId: getAccountInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetAccountInfoRequest'
            examples:
              basic:
                summary: Basic account info request
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getAccountInfo
                  params:
                    - AYAmCRPotwZprbNpPQ1hVGSEpbgWUgWHUbjnjt4bfLo1
              withEncoding:
                summary: Request with base64 encoding
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getAccountInfo
                  params:
                    - AYAmCRPotwZprbNpPQ1hVGSEpbgWUgWHUbjnjt4bfLo1
                    - encoding: base64
              withOptions:
                summary: Request with jsonParsed encoding
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getAccountInfo
                  params:
                    - AYAmCRPotwZprbNpPQ1hVGSEpbgWUgWHUbjnjt4bfLo1
                    - encoding: jsonParsed
                      commitment: finalized
              withDataSlice:
                summary: Request with data slice
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getAccountInfo
                  params:
                    - AYAmCRPotwZprbNpPQ1hVGSEpbgWUgWHUbjnjt4bfLo1
                    - encoding: base64
                      dataSlice:
                        offset: 0
                        length: 100
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAccountInfoResponse'
              examples:
                successBase64:
                  summary: Successful response with base64 encoding
                  value:
                    jsonrpc: '2.0'
                    result:
                      context:
                        slot: 1
                      value:
                        data:
                          - >-
                            11116bv5nS2h3y12kD1yUKeMZvGcKLSjQgX6BeV7u1FrjeJcKfsHRTPuR3oZ1EioKtYGiYxpxMG5vpbZLsbcBYBEmZZcMKaSoGx9JZeAuWf
                          - base64
                        executable: false
                        lamports: 1000000000
                        owner: '11111111111111111111111111111111'
                        rentEpoch: 2
                        space: 80
                    id: 1
                successJsonParsed:
                  summary: Successful response with jsonParsed encoding
                  value:
                    jsonrpc: '2.0'
                    result:
                      context:
                        apiVersion: 3.0.0
                        slot: 372910193
                      value:
                        data:
                          parsed:
                            info:
                              isNative: false
                              mint: FGf1Us3kqu9AXu2x1yWKfiKE8uSx42ACvRiUrbuAodzq
                              owner: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
                              state: initialized
                              tokenAmount:
                                amount: '4055486331542675841'
                                decimals: 9
                                uiAmount: 4055486331.542676
                                uiAmountString: '4055486331.542675841'
                            type: account
                          program: spl-token
                          space: 165
                        executable: false
                        lamports: 2039280
                        owner: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
                        rentEpoch: 18446744073709552000
                        space: 165
                    id: 1
                accountNotFound:
                  summary: Account does not exist
                  value:
                    jsonrpc: '2.0'
                    result:
                      context:
                        slot: 123456789
                      value: null
                    id: 1
      security:
        - ApiKeyQuery: []
components:
  schemas:
    GetAccountInfoRequest:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        id:
          type: integer
        method:
          type: string
          enum:
            - getAccountInfo
        params:
          type: array
          minItems: 1
          maxItems: 2
          items:
            - type: string
              description: Pubkey of account to query, as base-58 encoded string
            - type: object
              description: Configuration object
              properties:
                commitment:
                  type: string
                  enum:
                    - finalized
                    - confirmed
                    - processed
                  description: Commitment level
                encoding:
                  type: string
                  enum:
                    - base58
                    - base64
                    - base64+zstd
                    - jsonParsed
                  description: Encoding format for account data
                dataSlice:
                  type: object
                  description: Request a slice of the account's data
                  properties:
                    offset:
                      type: integer
                      description: Byte offset from which to start reading
                    length:
                      type: integer
                      description: Number of bytes to read
                minContextSlot:
                  type: integer
                  description: Minimum slot that the request can be evaluated at
    GetAccountInfoResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        result:
          type: object
          properties:
            context:
              type: object
              properties:
                slot:
                  type: integer
                  description: The slot at which the data was retrieved
                apiVersion:
                  type: string
                  description: The Solana API version
            value:
              oneOf:
                - type: 'null'
                  description: If the account doesn't exist
                - type: object
                  properties:
                    data:
                      oneOf:
                        - type: array
                          description: '[data, encoding] pair for base58/base64'
                          items:
                            - type: string
                            - type: string
                        - type: object
                          description: Parsed data object when jsonParsed encoding is used
                    executable:
                      type: boolean
                      description: Boolean indicating if the account contains a program
                    lamports:
                      type: integer
                      description: Number of lamports assigned to this account
                    owner:
                      type: string
                      description: >-
                        Base-58 encoded Pubkey of the program this account has
                        been assigned to
                    rentEpoch:
                      type: integer
                      description: The epoch at which this account will next owe rent
                    space:
                      type: integer
                      description: The data size of the account
        id:
          type: integer
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````