A developer is implementing EIP-2981 for an NFT collection. A marketplace needs to determine the royalty payment for a token with `tokenId` 789 that just sold for 10 ETH. Which function signature must the marketplace call on the NFT contract to get this information?
-
A
royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount)
-
B
getRoyalty(uint256 _tokenId) external view returns (address receiver, uint256 percentage)
-
C
calculateRoyalty(uint256 _tokenId, uint256 _salePrice, address _currency) external view returns (uint256 royaltyAmount)
-
D
onSale(uint256 _tokenId, uint256 _salePrice) external payable