Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EOSManager

Manages client connection and communication with a local EOSIO node

Hierarchy

  • EOSManager

Index

Properties

Static adminAccount

adminAccount: Account

Defaults to eosio administration account

Static api

api: Api

Configured EOSjs client

Static rpc

rpc: JsonRpc

RPC connection with the local EOSIO node at http://127.0.0.1:8888

Static signatureProvider

signatureProvider: JsSignatureProvider

Development signature provider

Methods

Static addSigningAccountIfMissing

  • addSigningAccountIfMissing(account: Account): void
  • Ensures our signature provider has the key in question, and if not, adds it.

    Parameters

    • account: Account

      Account to be unioned into the signature list.

    Returns void

Static init

  • init(__namedParameters: { adminAccount: Account; chainId: undefined | string; httpEndpoint: string }): void
  • Initializes a connection to any EOSIO node and sets the administration keys which Lamington uses to deploy contracts, create accounts, etc.

    Parameters

    • __namedParameters: { adminAccount: Account; chainId: undefined | string; httpEndpoint: string }
      • adminAccount: Account
      • chainId: undefined | string
      • httpEndpoint: string

    Returns void

Static initWithDefaults

  • initWithDefaults(): void
  • Initializes a default connection to the local EOSIO node on port 8888 and assigns the default eosio account with administration keys

    Returns void

Static transact

  • transact(transaction: any, eos?: Api, options?: undefined | { blocksBehind?: undefined | number; debug?: undefined | false | true; debugLevel?: LamingtonDebugLevel; expireSeconds?: undefined | number; logMessage?: undefined | string }): Promise<any>
  • Executes a transaction against a connected EOSjs client

    Parameters

    • transaction: any

      EOSIO transaction object

    • Default value eos: Api = EOSManager.api

      Connected EOSjs client

    • Optional options: undefined | { blocksBehind?: undefined | number; debug?: undefined | false | true; debugLevel?: LamingtonDebugLevel; expireSeconds?: undefined | number; logMessage?: undefined | string }

      Additional transaction options

    Returns Promise<any>

Generated using TypeDoc