Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Contract

internal

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Contract(url: string, contractInterface: any, address: string): Contract
  • Parameters

    • url: string
    • contractInterface: any

      JSON-RPC interface of smartContract

    • address: string

      Contract's address

    Returns Contract

Properties

address

address: string

contractInterface

contractInterface: [any]

url

url: string

Methods

Protected fetch

  • fetch(url: any, options: any): Promise<Response | Response>

fetchMethod

  • fetchMethod(method: string, args: string[]): Promise<any>
  • Used to fetch a Contract method

    async

    Parameters

    • method: string

      method name

    • args: string[]

      method args

    Returns Promise<any>

Protected isNode

  • isNode(): boolean

Generated using TypeDoc