Links

setRoyalties

Sets the royalties for the receiver address.

Parameters

publicAddress: string - address for the receiver
fee: number - royalty fee to provide the receiver

Response

transactionResponse: confirmation the transaction is complete

Example

const royalties = await newContract.setRoyalties({
publicAddress: process.env.WALLET_PUBLIC_ADDRESS,
fee: 50,
});
const royaltiesSet = await royalties.wait();
console.log(royaltiesSet);