The IInteractionParameters interface extends SharedInteractionParameters for calling functions on deployed contracts.
IInteractionParameters
Overview
The IInteractionParameters interface configures contract interaction transactions. It includes the encoded calldata, the target address, and an optional contract address when the recipient differs from the contract being called.
The full source code is available on GitHub at ITransactionParameters.ts.
Import
import { IInteractionParameters } from '@btc-vision/transaction';Interface
Signature
interface IInteractionParameters extends SharedInteractionParameters {
readonly calldata: Uint8Array;
readonly to: string;
readonly contract?: string;
}Description
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| calldata | Uint8Array | Yes | |
| to | string | Yes | |
| contract | string | No |