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%
},
];

Parameters

Returns

an array of recipients' addresses and split percentage of each