<aside>
🧙♂️ GEN F SDK is a minimalist SDK that wraps contract interactions and provides statistic data from the backend.
</aside>
📋 SDK
Import & Initialization
import { GenF, ChainId } from '@flooz/gen-f-sdk';
const sdk = new GenF(ChainId.RINKEBY_TESTNET); // only Rinkeby for now
Constants
- GENF_TOKEN
returns contract address of the GEN F contract
Types / Entities
- Network
- TransactionRequest
Methods
- mintTokens()
Returns a TransactionRequest to mint a NFT
- getMintingPrice()
Returns the current minting price
- getMintCount()
Returns the amount of tokens that have already been minted
- getUserNFTs() – Mock for now
Returns an array of tokenIds that the given user owns
- getStats() – Mock for now
Returns stats of GEN F Collection
- isPublicMintingOpen()
Returns if the public minting is already open