getRoyaltyInfoForToken

Calls the "getRoyaltyInfoForToken" function on the contract.

Example

import { RoyaltyERC721 } from "thirdweb/modules";
const result = await RoyaltyERC721.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.