我有以下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上部署和检查它的设置时,我发现没有自动设置特许权使用费。
发布于 2022-05-31 16:37:24
您只能通过OpenSea UI添加版税。
转到您的收藏,点击“编辑”,并向下滚动,以找到版税部分。
发布于 2022-04-09 06:53:17
我也遇到了同样的问题,从他们在文档中说的话来看,他们似乎每个月都会大量发送收入。但我还没能证实这点。
接收您的收入收入的
将每月一次批量分配到指定的付款地址。OpenSea免费提供它的市场基础设施--它完全可以免费开始建立一个市场并使用我们的平台。作为对这项服务的补偿,每笔销售的2.5%将提供给OpenSea --不受任何费用的影响。
https://docs.opensea.io/docs/10-setting-fees-on-secondary-sales
https://stackoverflow.com/questions/71513603
复制相似问题