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

# getAccountInfo

> Returns all information associated with the account of provided Pubkey.

Returns all information associated with the account of provided Pubkey.

## On ThorNode

Answered by FastGate through the ThorEdge RPC URL; no separate endpoint or key. `commitment` and `minContextSlot` are accepted and ignored: the response reflects FastGate's indexed slot, reported as `context.slot` (no `apiVersion`). The request times out after 30 s. Encodings: `base64` (default), `base58`, `base64+zstd`, `jsonParsed` (token accounts and mints; other accounts fall back to base64). The options parameter must be an object; `dataSlice` is ignored with `jsonParsed`.

## Parameters

<ParamField body="pubkey" type="string" required>
  Pubkey of account to query, as a base-58 encoded string.
</ParamField>

<ParamField body="commitment" type="string">
  Commitment level for the query. Accepted and ignored by FastGate.

  * `finalized`
  * `confirmed`
  * `processed`
</ParamField>

<ParamField body="encoding" type="string">
  Encoding format for account data.

  * `base58`
  * `base64`
  * `base64+zstd`
  * `jsonParsed`
</ParamField>

<ParamField body="dataSlice" type="object">
  Request a slice of the account's data.
</ParamField>

<ParamField body="dataSlice.offset" type="number">
  Byte offset from which to start reading.
</ParamField>

<ParamField body="dataSlice.length" type="number">
  Number of bytes to return.
</ParamField>

<ParamField body="minContextSlot" type="number">
  The minimum slot that the request can be evaluated at. Accepted and ignored by FastGate.
</ParamField>

## Response

<ResponseField name="context" type="object">
  Context of the request.

  <Expandable title="properties">
    <ResponseField name="slot" type="integer">
      Slot number of the response.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties">
    <ResponseField name="lamports" type="integer">
      Number of lamports assigned to this account.
    </ResponseField>

    <ResponseField name="owner" type="string">
      Base-58 encoded Pubkey of the program this account is assigned to.
    </ResponseField>

    <ResponseField name="data" type="string[]">
      Data associated with the account, either as encoded binary data or JSON format.
    </ResponseField>

    <ResponseField name="executable" type="boolean">
      Indicates if the account contains a program.
    </ResponseField>

    <ResponseField name="rentEpoch" type="integer">
      The epoch at which this account will next owe rent.
    </ResponseField>

    <ResponseField name="space" type="integer">
      The data size of the account.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --fail-with-body "$THORNODE_RPC_URL" \
    --header 'content-type: application/json' \
    --data '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getAccountInfo",
      "params": [
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        {
          "encoding": "base64"
        }
      ]
    }'
  ```

  ```javascript Node.js theme={null}
  const body = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getAccountInfo",
    "params": [
      "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      {
        "encoding": "base64"
      }
    ]
  };

  const response = await fetch(process.env.THORNODE_RPC_URL, {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify(body),
  });
  const { result, error } = await response.json();
  console.log(result ?? error);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "jsonrpc": "2.0",
    "result": {
      "context": {
        "slot": 439749188
      },
      "value": {
        "lamports": 519684617954,
        "data": [
          "AQAAAJj+huiNm+Lqi8HMpIeLKYjCQPUrhCS/tA7Rot3LXhmbPcCRdLFHGwAGAQEAAABicKqKWcWUBbRShshncubNEm6bil06OFNtN/e0FOi2Zw==",
          "base64"
        ],
        "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
        "executable": false,
        "rentEpoch": 18446744073709551615,
        "space": 82
      }
    },
    "id": 1
  }
  ```
</ResponseExample>
