Docs
chromia.com

Function

createAccountObject

  • createAccountObject(
        connection: Connection,
        accountId: BufferId,
        type?: string,
    ): Account

    Creates an instance of the Account interface

    Parameters

    • connection: Connection

      a connection to the blockchain where this account is registered

    • accountId: BufferId

      the id of the account

    • Optionaltype: string

      optional type of the account

    Returns Account