Get all the recipients of a Split contracts
import { getAllRecipientsPercentages } from "thirdweb/extensions/split"; const allRecipients = await getAllRecipientsPercentages({ contract });// Example result:[ { address: "0x1...", splitPercentage: 25, // 25% }, { address: "0x2...", splitPercentage: 75, // 75% },];
function getAllRecipientsPercentages( options: BaseTransactionOptions,): Promise<Array<SplitRecipient>>;
let options: { contract: ThirdwebContract<abi> } & T;
let returnType: { address: string; splitPercentage: number };
an array of recipients' addresses and split percentage of each