Links

royaltyInfo

Returns receiver address and royalty amount based on sell price.

Parameters

tokenID: number - Token ID
sellPrice: number - Sell price of the token

Response

royaltyInfo: object - results containing:
  • recieverAddress: string - address to receive the royalty
  • bigNumber: number - Royalty amount

Example

const infos = await newContract.royaltyInfo({
tokenId: 1,
sellPrice: 100000
});
console.log(infos);