Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RPCProvider

Implements

Index

Constructors

Properties

mrpc: MetrixRPCNode
network: NetworkType
sender: undefined | string

Methods

  • callContract(contract: string, method: string, data: string[], abi: any[]): Promise<undefined | Result>
  • getTxReceipts(tx: { hash160: string; sender: string; txid: string }, abi: any[], contract?: string): Promise<TransactionReceipt[]>
  • sendToContract(contract: string, method: string, data: string[], value?: string, gasLimit?: number, gasPrice?: number, abi: any[], changeToSender?: undefined | boolean): Promise<any>
  • Parameters

    • contract: string
    • method: string
    • data: string[]
    • value: string = '0'
    • gasLimit: number = 250000
    • gasPrice: number = 5000
    • abi: any[]
    • changeToSender: undefined | boolean = true

    Returns Promise<any>

Generated using TypeDoc