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