---
title: "getaccount"
method: POST
path: "/node/v1/tron/mainnet/{apiKey}/wallet/getaccount"
---

# getaccount

`POST /node/v1/tron/mainnet/{apiKey}/wallet/getaccount`

Query information about an account, including TRX balance, TRC-10 balances, stake information and vote information and permissions etc.

## Path parameters

- `apiKey` string, required

## Request body

- object
  - `address` string, required — address should be converted to a hex string
  - `visible` boolean, required — Optional,whether the address is in base58 format

## Response `200`

200

- object — returns the account object.
  - `address` string
  - `balance` integer
  - `create_time` integer
  - `net_window_size` integer
  - `net_window_optimized` boolean
  - `account_resource` object
    - `energy_window_size` integer
    - `energy_window_optimized` boolean
  - `owner_permission` object
    - `permission_name` string
    - `threshold` integer
    - `keys` object[]
      - `address` string
      - `weight` integer
  - `active_permission` object[]
    - `type` string
    - `id` integer
    - `permission_name` string
    - `threshold` integer
    - `operations` string
    - `keys` object[]
      - `address` string
      - `weight` integer
  - `frozenV2` object[]
    - `type` string
  - `asset_optimized` boolean

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
