FarcasterKey

creatorIdOf

Get the creatorId by token ID

function creatorIdOf(uint256 tokenId) external view

NameTypeDescription

tokenId

uint256

the ID of NFT token

creatorIdsOf

Similar to creatorIdOf(), supports batch operations

function creatorIdsOf(uint256[] calldata tokenIds) external view

NameTypeDescription

tokenId

uint256

the ID of NFT token

creatorIdsOfOwner

Get the creatorIds by owner address

function creatorIdsOfOwner(address tokenOwner) external view

NameTypeDescription

tokenOwner

address

the owner's address

Mint

Mint the Profile Key NFT

function mint(address to, uint256 amount, uint256 creatorId) external onlyFarcasterKeys

NameTypeDescription

to

address

The address that receives the NFTs

amount

uint256

The amount of Minted NFTs

creatorId

uint256

The creator's Farcaster ID

Burn

Burn the profile Key NFT

function burn(uint256 tokenId) external onlyFarcasterKeys

NameTypeDescription

tokenId

uint256

the ID of the profile key NFT

totalMinted

Get the amount of minted NFTs

function totalMinted() external view

totalBurned

Get the amount of burned NFTs

function totalBurned() external view

setBaseURI

Set the base image URI of NFT

function setBaseURI(string memory newBasURI) external onlyOwner

NameTypeDescription

newBasURI

string

The image URI

Last updated