Represents a module for interacting with smart contracts on the blockchain.

Constructors

Properties

transactionsModule: TransactionsModule

Methods

  • Creates a new instance of ContractFactory configured with the specified ABI, bytecode, and signer. This factory is used to deploy new smart contracts to the blockchain network managed by this instance.

    Type Parameters

    • TAbi extends Abi

    Parameters

    • abi: TAbi

      The Application Binary Interface (ABI) of the contract, which defines the contract's methods and events.

    • bytecode: string

      The compiled bytecode of the contract, representing the contract's executable code.

    • signer: VeChainSigner

      The signer used for signing transactions during contract deployment, ensuring the deployer's identity.

    Returns ContractFactory<TAbi>

    An instance of ContractFactory configured with the provided ABI, bytecode, and signer, ready for deploying contracts.

  • Initializes and returns a new Contract instance with the provided parameters.

    Type Parameters

    • Tabi extends Abi

    Parameters

    • address: string

      The blockchain address of the contract to load.

    • abi: Tabi

      The Application Binary Interface (ABI) of the contract, which defines the contract's methods and structures.

    • Optionalsigner: VeChainSigner

      Optional. The signer caller, used for signing transactions when interacting with the contract.

    Returns Contract<Tabi>

    A new instance of the Contract, initialized with the provided address, ABI, and optionally, a signer.