> ## 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.

# UpdateAccount

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)

›

UpdateAccount

com.digitalasset.canton.tea.v1

# UpdateAccount

gRPC

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

RPC

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

## Protocol Details

Protocol
gRPC

Service
TrafficService

RPC
UpdateAccount

Client stream
No

Server stream
No

## Inputs

### UpdateAccountRequest

Message
com.digitalasset.canton.tea.v1.UpdateAccountRequest

Client stream
No

`account_id`
string

`balance_delta`
int64

`deduplication_id`
string

## Outputs

### UpdateAccountResponse

Message
com.digitalasset.canton.tea.v1.UpdateAccountResponse

Server stream
No

`response`
GetAccountResponse

## Related Schemas

> [accordion] com.digitalasset.canton.tea.v1.UpdateAccountRequest
>
> `account_id`
> string
>
> `balance_delta`
> int64
>
> `deduplication_id`
> string

> [accordion] com.digitalasset.canton.tea.v1.UpdateAccountResponse
>
> `response`
> GetAccountResponse

> [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/UpdateAccount <<'EOF'
{
  "accountId": "string",
  "balanceDelta": "0",
  "deduplicationId": "string"
}
EOF
```

OK

application/json

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