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

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GetAccount

Other APIs

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

[com.digitalasset.canton.tea.v1](https://docs.canton.network/reference/grpc-ledger-api-reference/com-digitalasset-canton-tea-v1.md)

›

GetAccount

com.digitalasset.canton.tea.v1

# GetAccount

gRPC

[Added 3.5.15](#history-added-3-5-15)

RPC

`/com.digitalasset.canton.tea.v1.TrafficService/GetAccount`

## Protocol Details

Protocol
gRPC

Service
TrafficService

RPC
GetAccount

Client stream
No

Server stream
No

## Inputs

### GetAccountRequest

Message
com.digitalasset.canton.tea.v1.GetAccountRequest

Client stream
No

`account_id`
string

## Outputs

### GetAccountResponse

Message
com.digitalasset.canton.tea.v1.GetAccountResponse

Server stream
No

`account_id`
string

`balance`
int64

## Related Schemas

> [accordion] com.digitalasset.canton.tea.v1.GetAccountRequest
>
> `account_id`
> string

> [accordion] com.digitalasset.canton.tea.v1.GetAccountResponse
>
> `account_id`
> string
>
> `balance`
> int64

## History

Added
`3.5.15`

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.tea.v1.TrafficService/GetAccount <<'EOF'
{
  "accountId": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "accountId": "string",
  "balance": "0"
}
```
