簡體   English   中英

無法在 NFT 合約上設置 opensea.io 版稅

[英]Can not set opensea.io royalties on a NFT Contract

我有以下 ERC721 合同,它正在創建一個具有指定版稅的 NFT 集合:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "./openzeppelin-contracts/contracts/token/common/ERC2981.sol";
import "./openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
import "./openzeppelin-contracts/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./openzeppelin-contracts/contracts/access/Ownable.sol";

contract Collection is ERC721, ERC721Enumerable, ERC2981, Ownable {

    constructor(uint96 _royaltyFeesInBips) ERC721("MyToken", "MTK") {
        setRoyaltyInfo(owner(), _royaltyFeesInBips);
    }

    function safeMint(address to, uint256 tokenId) public onlyOwner {
        _safeMint(to, tokenId);
    }

    function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner {
        _setDefaultRoyalty(_receiver, _royaltyFeesInBips);
    }

    function contractURI() public view returns (string memory) {
        return "ipfs://QmQRTsxyt8Wv9v9DSLegJNbZqBMPJxb1X3Ueu9QngRFX8g";
    }
    
    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

contractURI處具有以下合約元數據

{
  "name": "OpenSea Creatures",
  "description": "OpenSea Creatures are adorable aquatic beings primarily for demonstrating what can be done using the OpenSea platform. Adopt one today to try out all the OpenSea buying, selling, and bidding feature set.",
  "image": "https://openseacreatures.io/image.png",
  "external_link": "https://openseacreatures.io",
  "seller_fee_basis_points": 100, # Indicates a 1% seller fee.
  "fee_recipient": "0x4c39afBBa8C472F6aB272AC37bA683AE0323dfd7" # Where seller fees will be paid to.
}

不幸的是,當我在 opensea.io 上部署並檢查其設置時,我發現版稅沒有自動設置

我遇到了同樣的問題,從他們在文檔中所說的來看,他們似乎每月一次批量發送收入。 但我還不能證實這一點。

收到您的收入

收入將每月一次批量分配到指定的付款地址。 OpenSea 免費提供其市場基礎設施——開始建立市場和使用我們的平台是完全免費的。 作為對這項服務的補償,每筆銷售的 2.5% 將用於 OpenSea——與您選擇收取的任何費用無關。

https://docs.opensea.io/docs/10-setting-fees-on-secondary-sales

您只能通過 OpenSea UI 添加版稅。

轉到您的收藏,點擊“編輯”,然后向下滾動以找到版稅部分。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM