getOnGameNFTInfo

function getOnGameNFTInfo(
   address _nftContract, 
   uint256 _tokenId
) external view returns(IManageNFT.NFTData memory info)

NFT 정보(on mode)

Parameters

TypeValueDescription

address

_nftContract

NFT μ»¨νŠΈλž™νŠΈ μ£Όμ†Œ

uint256

_tokenId

token id

Return Values

struct NFTData{
  uint256 onGameTime;
  string url;
} 
TypeValueDescription

NFTData

info

nft data 정보

NFTData.uint256

onGameTime

on mode μ‹œμž‘ μ‹œκ°„

NFTData.string

url

nft url 정보

Example

data = await manageNftRouterContract.getOnGameNFTInfo(fairyNftContract.address, 1)

// result
[
  BigNumber { value: "1675650182" },
  'http://test.com/fairy/1',
  onGameTime: BigNumber { value: "1675650182" },
  url: 'http://test.com/fairy/1'
]

2023.03.03

Last updated