FarcasterKey

creatorIdOf

Get the creatorId by token ID

function creatorIdOf(uint256 tokenId) external view

Name
Type
Description

tokenId

uint256

the ID of NFT token

creatorIdsOf

Similar to creatorIdOf(), supports batch operations

function creatorIdsOf(uint256[] calldata tokenIds) external view

Name
Type
Description

tokenId

uint256

the ID of NFT token

creatorIdsOfOwner

Get the creatorIds by owner address

function creatorIdsOfOwner(address tokenOwner) external view

Name
Type
Description

tokenOwner

address

the owner's address

Mint

Mint the Profile Key NFT

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

newBasURI

string

The image URI

Last updated