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