Class BaseContract<T>

Represents the base contract class.

Type Parameters

Hierarchy (view full)

Constructors

Properties

[internal]: undefined | keyof T

The internal functions of the contract.

The address of the contract.

from?: string

Who is sending the transaction.

interface: BitcoinInterface

The interface of the contract.

A generic provider for the contract.

Methods

  • Encodes the calldata for a function.

    Parameters

    • functionName: string

      The name of the function.

    • args: unknown[]

      The arguments for the function.

    Returns Buffer

    The encoded calldata.