getRoyaltyInfoForToken

Calls the "getRoyaltyInfoForToken" function on the contract.

Example

import { getRoyaltyInfoForToken } from "thirdweb/extensions/common";
const result = await getRoyaltyInfoForToken({
contract,
tokenId: ...,
});
function getRoyaltyInfoForToken(
): Promise<readonly [string, number]>;

Parameters

The options for the getRoyaltyInfoForToken function.

Type

Returns

let returnType: Promise<readonly [string, number]>;

The parsed result of the function call.