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