release

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

Example

import { sendTransaction } from "thirdweb";
import { release } from "thirdweb/extensions/split";
const transaction = release({
contract,
account: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function release(
ReleaseParams | { asyncParams: () => Promise<ReleaseParams> }
>,

Parameters

The options for the "release" function.

Type

ReleaseParams | { asyncParams: () => Promise<ReleaseParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.