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;
}
TypeValueDescription

BreedNFTRequest

_request

request 배열

BreedNFTRequest.address

nftContract

NFT 컨트랙트 주소

BreedNFTRequest.string

messageId

메시지 고유 ID

BreedNFTRequest.string

ownerUid

사용자 uid

BreedNFTRequest.uint256

matornId

부모 token id

BreedNFTRequest.uint256

sireId

부모 token id

BreedNFTRequest.uint256

breedFee

브리딩 수수료

BreedNFTRequest.uint256

tokenId

브리딩 결과 토큰 id

BreedNFTRequest.string

url

브리딩 결과 url

BreedNFTRequest.uint256

txFee

tx 수수료

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