Queries all the information stored about an account in the network. The returned account details may vary between calls, because an endpoint may route requests to different validators within the network and region, and the validators may not be at the same round ID at any given time.

### HTTP request

Choose an endpoint:
global us-central1 us-east1 us-east4 us-east5 us-west1 europe-west2 europe-west3   
`GET https://universalledger.googleapis.com/v1/{endpoint=projects/*/locations/*/endpoints/*}:queryAccount`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `endpoint` | `string` Required. The endpoint to serve the request. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` The location is a region. |

### Query parameters

| Parameters ||
|---|---|
| `accountId` | `string` Required. The account ID to get information about. The value is limited to 60 characters. |
| `roundId` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The ID of the execution round (similar to block "height") at which to request data. The returned account information will be accurate for the world state at this execution round. If unspecified, uses the latest finalized round as known by the serving validator. The state at a given round ID is always consistent and canonical. |

### Request body

The request body must be empty.

### Response body

Response message for endpoints.queryAccount.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "account": { object (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account`) } } ``` |

| Fields ||
|---|---|
| `account` | ``object (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account`)`` The account information, along with the height at which it was obtained. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).