Options
All
  • Public
  • Public/Protected
  • All
Menu

Adds additional functionality to the EOSJS Contract class

Hierarchy

  • Contract

Implements

  • Contract

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Contract(__namedParameters: { abi: Abi; account: Account; actions: Map<string, Type>; eos: Api; identifier: undefined | string; types: Map<string, Type> }): Contract
  • Parameters

    • __namedParameters: { abi: Abi; account: Account; actions: Map<string, Type>; eos: Api; identifier: undefined | string; types: Map<string, Type> }
      • abi: Abi
      • account: Account
      • actions: Map<string, Type>
      • eos: Api
      • identifier: undefined | string
      • types: Map<string, Type>

    Returns Contract

Properties

actions

actions: Map<string, Type> = new Map()

Deployed contract actions

types

types: Map<string, Type> = new Map()

Deployed contract types

Accessors

account

  • Gets the currently configured contract account

    author

    Kevin Brown <github.com/thekevinbrown>

    Returns Account

    Current contract account

identifier

  • get identifier(): undefined | string
  • Gets the current contract identifier

    author

    Kevin Brown <github.com/thekevinbrown>

    Returns undefined | string

    Contract identifier

Methods

addCodePermission

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

    Returns Promise<void>

getTableRows

  • Retrieves table rows with the specified table name and optional scope

    Parameters

    Returns Promise<any>

Generated using TypeDoc