Check ERC2981 Royalty

To know the methods calling to Startrail API from Startrail-Sdk-Js

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

Parameters Example

sdk.checkERC2981Royalty(
  {  
    tokenId: '212786904920'
  }
)

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

Error

Custom Error objects. Refer to the Error Catalogue for possible data.

Response Example

{
  "royaltyReceiver": "0xA6E6a9E20a541680a1D6E1412f5088AefBF58a22",
  "royaltyBasisPoints": "1570",
}

Last updated

©2023 Startbahn, Inc.