---
title: "AccountAddressByID returns account address based on account number."
method: GET
path: "/cosmos/auth/v1beta1/address_by_id/{id}"
tags: ["Query"]
---

# AccountAddressByID returns account address based on account number.

`GET /cosmos/auth/v1beta1/address_by_id/{id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/docs/cosmos/auth/v1beta1/address_by_id/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, int64, required

## Query parameters

- `accountId` string, uint64

## Response `200`

A successful response.

- CosmosAuthV1beta1QueryAccountAddressByIDResponse
  - `accountAddress` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2024-01-08** `b8d29710efb5`: 1 info
  - added the new optional `query` request parameter `accountId`
- **2023-11-17** `f416fba3183f`: 1 warning
  - deleted the `query` request parameter `accountId`

[Operation history](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/changes/cosmos/auth/v1beta1/address_by_id/:id/get.md)

---

[API](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api.md) - [All operations](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/revisions/2d0419923f40?raw)
