doBreedNFT

function doBreedNFT(
    BreedNFTRequest[] memory _request,
) external onlyRelayAdmin

NFT Breed

Parameters

struct BreedNFTRequest{
    address nftContract;
    string messageId;
    string ownerUid;
    uint256 matronId;
    uint256 sireId;
    uint256 breedFee;
    uint256 tokenId;
    string url;
    uint256 txFee;
}

Example

await manageNftRouterContract.doBreedNFT(
        [{nftContract:fairyNftContract.address
        messageId:"1234", 
        ownerUid:uid1, 
        matronId:1, 
        sireId:2, 
        breedFee:ethers.utils.parseEther("200"), 
        tokenId:1001, 
        url:"http://test.com/fairy/", 
        txFee:ethers.utils.parseEther("100")}]
);

2023.02.10

Last updated