getRecipientSplitPercentage

Get the split percentage of a recipient

Example

import { getRecipientSplitPercentage } from "thirdweb/extensions/split";
const percentage = await getRecipientSplitPercentage({
recipientAddress: "0x...",
});
function getRecipientSplitPercentage(
options: BaseTransactionOptions<{ recipientAddress: string }>,
): Promise<SplitRecipient>;

Parameters

The options for the transaction

Type

let options: BaseTransactionOptions<{ recipientAddress: string }>;

Returns

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

The split percentage of the recipient