distribute

Prepares a transaction to call the "distribute" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { distribute } from "thirdweb/extensions/split";
const transaction = distribute();
// Send the transaction
await sendTransaction({ transaction, account });
function distribute(

Parameters

The options for the "distribute" function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.