This extension is similar to the distribute extension, however it require you to specify the token (address) that you want to distribute
distribute
import { distributeByToken } from "thirdweb/extensions/split"; const transaction = distributeByToken(); // Send the transaction...
function distributeByToken( options: BaseTransactionOptions<{ tokenAddress: string }>,): PreparedTransaction< any, { readonly inputs: readonly [ { readonly name: "token"; readonly type: "address" }, ]; readonly name: "distribute"; readonly outputs: readonly []; readonly stateMutability: "nonpayable"; readonly type: "function"; }, PrepareTransactionOptions>;
let options: BaseTransactionOptions<{ tokenAddress: string }>;
let returnType: PreparedTransaction< any, { readonly inputs: readonly [ { readonly name: "token"; readonly type: "address" }, ]; readonly name: "distribute"; readonly outputs: readonly []; readonly stateMutability: "nonpayable"; readonly type: "function"; }, PrepareTransactionOptions>;
A prepared transaction object.