canBreedNFT

function canBreedNFT(
    address _nftContract,
    string memory _ownerUid, 
    uint256 _matronId, 
    uint256 _sireId, 
    uint256 _breedFee, 
    string memory _url, 
    uint256 _txFee
) external view returns(bool)

NFT Breed ์‚ฌ์šฉ ๊ฐ€๋Šฅ ์—ฌ๋ถ€

Parameters

TypeValueDescription

address

_nftContract

NFT ์ปจํŠธ๋ž™ํŠธ ์ฃผ์†Œ

string

_ownerUid

์‚ฌ์šฉ์ž uid

uint256

_matornId

๋ถ€๋ชจ token id

uint256

_sireId

๋ถ€๋ชจ token id

uint256

_breedFee

๋ธŒ๋ฆฌ๋”ฉ ์ˆ˜์ˆ˜๋ฃŒ

string

_url

nft url

uint256

_txFee

tx ์ˆ˜์ˆ˜๋ฃŒ

Return Values

TypeValueDescription

bool

๊ฐ€๋Šฅ True ๋ถˆ๊ฐ€๋Šฅ False

Example

await ManageNftRouterContract.canBreedNFT(
    fairyNftContract.address,
    uid,
    1,
    2,
    ethers.utils.parseEther("10"),
    "http://test.com/fairy/",
    ethers.utils.parseEther("10"),
);

2023.02.06

Last updated