ContractRoyalty.setTokenRoyaltyInfo() method
Set the royalty recipient and fee for a particular token
Signature:
setTokenRoyaltyInfo(tokenId: BigNumberish, royaltyData: z.input<typeof CommonRoyaltySchema>): Promise<{
receipt: import("@ethersproject/abstract-provider").TransactionReceipt;
data: () => Promise<{
seller_fee_basis_points: number;
fee_recipient: string;
}>;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
tokenId | BigNumberish | the token id |
royaltyData | z.input<typeof CommonRoyaltySchema> | the royalty recipient and fee |
Returns:
Promise<{ receipt: import("@ethersproject/abstract-provider").TransactionReceipt; data: () => Promise<{ seller_fee_basis_points: number; fee_recipient: string; }>; }>