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

# getAccountInfo

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

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getAccountInfo" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",{"encoding":"base58"}]} placeholder="[&#x22;vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg&#x22;,{&#x22;encoding&#x22;:&#x22;base58&#x22;}]" required>
  Parameters: \[pubkey, config]

  Positional parameters for <code>getAccountInfo</code>:

  <ul>
    <li><code>params\[0]</code>: Base-58 encoded public key of the account to query.</li>
    <li><code>params\[1]</code>: Optional configuration object.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Requested account information or if the account doesn\`t exist null
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getAccountInfo",
      "params": [
        "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
        {
          "encoding": "base58"
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "context": {
        "apiVersion": "2.0.15",
        "slot": 341197053
      },
      "value": {
        "data": [
          "",
          "base58"
        ],
        "executable": false,
        "lamports": 88849814690250,
        "owner": "11111111111111111111111111111111",
        "rentEpoch": "18446744073709551615",
        "space": 0
      }
    }
  }
  ```
</ResponseExample>
