Check ERC2981 Royalty
To know the methods calling to Startrail API from Startrail-Sdk-Js
checkERC2981Royalty()
checkERC2981Royalty()
Retrieve royalty payment information for SRR that is in accordance with ERC-2981 for non-fungible tokens (NFTs).
Refer to ERC-2981: NFT Royalty Standard for more details.
Method parameters
Variable | Type | Description |
---|---|---|
|
| The address of collection contract. Sets it when you want to associate collection contract address with the SRR. |
|
| Startrail Registry Record Token ID. Sets it when SRR is already issued and you know the tokenId. |
|
| Sets it instead of tokenId if SRR has not been issued yet. Refer to the Startrail Registry (SRR) data schema for all possible data |
|
| The ethereum address of the issuer of the artwork. Sets it instead of tokenId if SRR has not been issued yet. |
Parameters Example
Returns
Promise
will be returned which resolves with a Response
object upon a successful confirmation. false
will be returned when user flow is cancelled in such a case that a user closes the popup modal.
If the confirmation fails, the Promise
will resolve with an {error} object that describes the failure.
Promise<Response | false>
Response
Variable | Type | Description |
---|---|---|
|
| The Etherem address of SRR Royalty receiver, null if its ERC2981 is not activated or ineligible |
|
| SRR royalty basis points, null if its ERC2981 is not activated or ineligible. Divide it by 100 to see the actual nmber. |
Error
Custom Error
objects. Refer to the Error Catalogue for possible data.
Response Example
Last updated