wallet
0x9e41f508804b6accf025bef6eb5e35bf00600bd9
contract
0xbb1a75af61d385206706bcb41c3d6c5329390c4e
nftid
3
balace 10
er115
What is the chain you are using?
Im using mumbai tesnet
contract code
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract MultiCollection is ERC1155,Ownable,ERC1155Supply {
uint256 public _tokenIds=0;
uint256 public ItemId=0;
address public MarketOwner;
mapping (uint256=>creater) private _creaters;
mapping (uint256 => string) private _uris;
struct creater{
uint256 _royality;
address _creater;
}
uint MarketFee;
constructor() ERC1155("https://bafybeihul6zsmbzyrgmjth3ynkmchepyvyhcwecn2yxc57ppqgpvr35zsq.ipfs.dweb.link/{id}.json") {
MarketOwner=payable(msg.sender);
}
event CreateCollectible(
uint256 supply,
address _creator,
uint256 _mintingTime,
string _URI,
uint256 _tokenId
);
event Sold(
uint256 amuont,
uint256 _tokenId
);
using Counters for Counters.Counter;
function uri(uint256 tokenId) override public view returns (string memory) {
return(_uris[tokenId]);
}
function setTokenUri(uint256 tokenId, string memory _Uri) public {
require(bytes(_uris[tokenId]).length == 0, "Cannot set uri twice");
_uris[tokenId] = _Uri;
}
function mintToken(uint256 _amount, string memory _uri,uint256 _royality) public returns(string memory){
require(_amount!=0,"supplu should be more than zerro");
_mint(msg.sender, _tokenIds, _amount, "");
setTokenUri(_tokenIds, _uri);
_creaters[_tokenIds]=creater(
_royality,msg.sender
);
emit CreateCollectible(_amount,msg.sender,block.timestamp,_uri,_tokenIds);
_tokenIds +=1;
return _uri;
}
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) internal override(ERC1155, ERC1155Supply) {
super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
}
function getCreater(uint256 tokenID) external view returns(address){
return _creaters[tokenID]._creater;
}
function getRoyality(uint256 tokenID) external view returns(uint256){
return _creaters[tokenID]._royality;
}
}
Can you check it again? It seems to show NFTs for that contract:
{
"token_address": "0xbb1a75af61d385206706bcb41c3d6c5329390c4e",
"token_id": "3",
"amount": "10",
"owner_of": "0x9e41f508804b6accf025bef6eb5e35bf00600bd9",
"token_hash": "eb796478c67b78051cece916016e1ca3",
"block_number_minted": "30104279",
"block_number": "30104279",
"contract_type": "ERC1155",
"name": null,
"symbol": null,
"token_uri": "https://ipfs.moralis.io:2053/ipfs/QmZDZKSDMx8xTG5h2x8RoawLTRuuHNeP4w7KxGxjrkCFdd",
"metadata": "{\"name\":\"NFT collection Test\",\"description\":\"Description\",\"royalty\":0,\"image\":\"https://ipfs.infura.io/ipfs/QmWTDPMnEVy1WxxZLCvAFwAbgAtv5kV2ZvBQh6Pu1qeErH\",\"thumbnail\":null,\"category\":[\"art\"],\"mediaType\":\"image\"}",
"last_token_uri_sync": "2022-12-24T21:49:44.039Z",
"last_metadata_sync": "2022-12-24T21:49:48.653Z",
"minter_address": "ERC1155 tokens don't have a single minter"
}
nah in my code its not
What is your code that youβre running that uses the Moralis API? Can you provide more info about your app.
You can check separately with the documentation.
now its started to showing for all set for now