Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccountManager

Index

Methods

Static addCodePermission

  • addCodePermission(account: Account): Promise<void>
  • Grants eosio.code permission to the specified account's active key

    Parameters

    • account: Account

      Account without eosio.code permissions

    Returns Promise<void>

Static createAccount

  • Generates a new random account

    Parameters

    • Optional accountName: undefined | string

      Optional name for the account to create

    • Optional options: AccountCreationOptions

      Optional account creation settings

    Returns Promise<Account>

    Result returned from AccountManager.createAccounts

Static createAccounts

  • Generates a specified number of random accounts

    Parameters

    • Default value numberOfAccounts: number = 1

      Number of accounts to generate

    • Optional accountNames: string[]

      Array of account names. If array is provided then the numberOfAccounts is ignored.

    • Optional options: AccountCreationOptions

    Returns Promise<Account[]>

    Array of created account transaction promises

Static Private flattenOptions

  • Flattens account creation options

    author

    Kevin Brown <github.com/thekevinbrown>

    Parameters

    Returns { creator: Account; eos: Api }

    Account creation options

Static setupAccount

  • Publishes a new account and allocates ram where possible

    Parameters

    Returns Promise<any>

    Transaction result promise

Generated using TypeDoc