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

> createAccountObject(
    connection: Connection ,
    accountId: BufferId,
    type?: string,
): Account Creates an instance of the Account interface Param

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

Function

# createAccountObject

* ```signature
  createAccountObject(
      connection: Connection,
      accountId: BufferId,
      type?: string,
  ): Account
  ```

  Creates an instance of the `Account` interface

  #### Parameters

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

    a connection to the blockchain where this account is registered
  + accountId: BufferId

    the id of the account
  + `Optional`type: string

    optional type of the account

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

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