FarcasterKey
Last updated
Last updated
Get the creatorId by token ID
function creatorIdOf(uint256 tokenId) external view
Name | Type | Description |
---|---|---|
Similar to creatorIdOf(), supports batch operations
function creatorIdsOf(uint256[] calldata tokenIds) external view
Name | Type | Description |
---|---|---|
Get the creatorIds by owner address
function creatorIdsOfOwner(address tokenOwner) external view
Name | Type | Description |
---|---|---|
Mint the Profile Key NFT
function mint(address to, uint256 amount, uint256 creatorId) external onlyFarcasterKeys
Burn the profile Key NFT
function burn(uint256 tokenId) external onlyFarcasterKeys
Get the amount of minted NFTs
function totalMinted() external view
Get the amount of burned NFTs
function totalBurned() external view
Set the base image URI of NFT
function setBaseURI(string memory newBasURI) external onlyOwner
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
tokenId
uint256
the ID of NFT token
tokenId
uint256
the ID of NFT token
tokenOwner
address
the owner's address
to
address
The address that receives the NFTs
amount
uint256
The amount of Minted NFTs
creatorId
uint256
The creator's Farcaster ID
tokenId
uint256
the ID of the profile key NFT
newBasURI
string
The image URI