Hierarchy

  • default
    • MrxRegistrarController

Implements

  • IERC165

Constructors

Properties

abi: any[]
address: string
bytecode: undefined | string
provider: Provider

Methods

  • Get this contract balance

    Returns Promise<bigint>

    the satoshi balance of this contract

  • Perform calltocontract

    Parameters

    • method: string

      The contract method to call

    • args: any[]

      The arguments

    Returns Promise<undefined | Result>

    see Result

  • Get receipts from a transaction

    Returns Promise<EventLogs>

    an EventLogs object

  • Parameters

    • name: string
    • owner: string
    • duration: bigint
    • secret: string
    • resolver: string
    • addr: string
    • value: string

    Returns Promise<Transaction>

  • Perform sendtocontract

    Parameters

    • method: string

      The contract method to send to

    • args: any[]

      The arguments to use

    • Optionalvalue: string

      The amount to send to the contract

    • OptionalgasLimit: number

      The amount of gas units allowed

    • OptionalgasPrice: number

      The satoshi price per gas

    Returns Promise<{
        hash160: string;
        sender: string;
        txid: string;
    }>

    see Result