releaseByToken

Similar to the release extension, however this one requires you to specify a tokenAddress to release

Example

import { releaseByToken } from "thirdweb/extensions/split";
const transaction = releaseByToken({
contract,
account: ...,
overrides: {
...
}
});
// Send the transaction
...
function releaseByToken(
any,
{
readonly inputs: readonly [
{ readonly name: "token"; readonly type: "address" },
{ readonly name: "account"; readonly type: "address" },
];
readonly name: "release";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
>;

Parameters

Returns

let returnType: PreparedTransaction<
any,
{
readonly inputs: readonly [
{ readonly name: "token"; readonly type: "address" },
{ readonly name: "account"; readonly type: "address" },
];
readonly name: "release";
readonly outputs: readonly [];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
>;