Yochi NFT
Yochi NFT Integration Guide
Overview
This document describes how to integrate with the Yochi NFT minting process using the mintWithChannel function of the YochiNFTGenerator contract. This function allows for the minting of Yochi NFTs with specific configurations by specifying a channel ID.
Contract Interface
mintWithChannel Function
mintWithChannel FunctionMints a Yochi NFT through a specified channel.
function mintWithChannel(uint256 _channel) external returns (uint256)Parameters
_channel(uint256): The channel ID, used to identify different co-branded series or events.
Return Value
uint256: The Token ID of the minted NFT.
Usage Example
// JavaScript Example (using web3.js or ethers.js)
const abi = [{"inputs":[{"internalType":"uint256","name":"_channel","type":"uint256"}],"name":"mintWithChannel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}];
const contract = new web3.eth.Contract(abi, "0x882276945dc518C02bDd7414e4D77E205d59Be1c");
await contract.methods.mintWithChannel(100).send({ from: userAddress });Applying for New Co-branded Yochi NFTs
If you wish to apply for a new co-branded Yochi NFT, please fill out the following form:
Apply for New Co-branded Yochi NFT Form
Our team will review your application and contact you regarding potential collaboration.
Last updated