royaltyInfo

Calls the "royaltyInfo" function on the contract.

Example

import { RoyaltyERC1155 } from "thirdweb/modules";
const result = await RoyaltyERC1155.royaltyInfo({
contract,
tokenId: ...,
salePrice: ...,
});
function royaltyInfo(
): Promise<readonly [string, bigint]>;

Parameters

The options for the royaltyInfo function.

Type

Returns

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

The parsed result of the function call.