Docs
chromia.com

Function

getById

  • getById(connection: Connection, id: BufferId): Promise<Account | null>

    Fetches an account by its id

    Parameters

    • connection: Connection

      the blockchain connection to use

    • id: BufferId

      id of the account to fetch

    Returns Promise<Account | null>

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