Skip to content

SkucodeFactoryContract

SkucodeFactoryContract extends ethers.Contract and provides an interface for interacting with smart contract. It includes method for preparing transaction data.

Creating Instances

new SkucodeFactoryContract( target: string, contractRunner: Signer | Provider )

Creates a new instance of SkucodeFactoryContract connected to the specified contract address, using the provided signer or provider for interactions.

Properties

  • SkucodeFactoryContract.targetstring

    The target to connect to. This can be an address, ENS name or any Addressable, such as another contract.

  • SkucodeFactoryContract.contractRunnerSigner | Provider

    The Signer or Provider used for interacting with the contract.

To query or retrieve blockchain details, use the Provider, while for executing transactions, use the Signer.

Methods

skucodeFactoryContract.prepareTxData ( methodName: string, args: any[], signerAddress: string, memo?: string ) ⇒ Promise< TransactionRequest >

Prepares transaction data for a specific method in the contract.