# getById · FT4 TypeScript client · Chromia Docs (concept)

> getById(connection: Connection , id: BufferId): Promise< Account | null> Fetches an account by its id Parameters connection: Connection the blockchain conn

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/accounts.getById/

Function

# getById

* ```signature
  getById(connection: Connection, id: BufferId): Promise<Account | null>
  ```

  Fetches an account by its id

  #### Parameters

  + connection: [Connection](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)

    the blockchain connection to use
  + id: BufferId

    id of the account to fetch

  #### Returns Promise<[Account](https://docs.chromia.com/pages/ft4-ts-client/interfaces/accounts.Account/) | null>

  the account with the specified id, or null if no such account exists

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/accounts.getById.html)Generated API reference, mirrored from the live docs
