getAllRecipientsPercentages

Get all the recipients of a Split contracts

Example

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(
): Promise<Array<SplitRecipient>>;

Parameters

Type

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

Returns

let returnType: { address: string; splitPercentage: number };

an array of recipients' addresses and split percentage of each