NFT | Creation & Management
Financial Application 2 (FA2) token standard
Create and mint NFTs via the FA2 (Financial Application 2) unified token standard on Tezos, offering the following token types:
fungible (equals ERC-20 on Ethereum)
non-fungible (equals ERC-721 on Ethereum)
non-transferable (equals ERC-1238 on Ethereum)
multi-asset contracts (equals ERC-1155 on Ethereum)
FA2 implementations
The FA2 standard has multiple implementations. We support the following:
Single
With this implementation, you can only have one collection. It is like the ERC-721 style. Only owner minter can mint new NFTs.
Multiple
With this implementation, you can have multiple collections. In each collection, you can define the number of copies of each NFT. It is somehow like the ERC-1155 style.
Smart contract deployment
We offer a set of default FA2 based smart contract templates, providing the main functionality needed for NFT projects.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.
Body parameters
owner
: [string] the owner(Admin) of the smart contract.type
: [string] the FA2 smart contract implementation. EitherSINGLE
orMULTIPLE.
For more explanation, you can click here.
Example:
Add minter
The FA2 smart contract implementation allows minting NFTs from different accounts. The owner of the smart contract is allowed to add new minters.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.contract
: [string] smart contract address.
Body parameters:
minterAddress
: [string] an account address that will be able to mint new NFTs.
Example:
NFT Minting
With this API, you can mint a new NFT. It have multiple options to manages NFT minting. You can generate NFT URI metadata by yourself or let the NFT KIT generate it.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.contract
: [string] smart contract address
Body parameters:
metadataUri
: [string] metadata URI of the new token.If you want to generate metadata URI using NFT KIT, set the "metadataUri "value as an empty string.tokenId
: [string] the account address who will receive the NFTamount
: [string] the account address who will receive the NFTrecipientAddress
: [string] the account address who will receive the NFTmetadata
: NFT KIT will use values inside metadata to generate metadata URI of the new token. It confirms the structure defined by ERC721 and ERC1155 standards. For more details about NFT metadata standard.description
: [string] a description of the tokenname
: [string] the name of this specific tokenimage
: [string] this is the URL to the image of the item. Can be just about any type of image and can be IPFS URLs or paths.image_data
: [string] Raw SVG image data, if you want to generate images on the fly (not recommended). Only use this if you're not including the image parameter.external_url
: [string] This is the URL that will appear below the asset's image on OpenSea and will allow users to leave OpenSea and view the item on your site.attributes
: [string] To give your items a little more pizazz, we also allow you to add custom "attributes" to your metadata that will show up underneath each of your assets.trait_type
: [string] the name of the traitvalue
: [string] the value of the trait
Example:
Fetch NFT metadata
You can get the NFT metadata based on the NFT smart contract address and the NFT token ID.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.contract
: [string] smart contract addresstokenId
: [string] token id of the NFT
Example:
Get account NFTs
You get the NFTs list of an account on the specified network.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.owner
: [string] owner address
Example:
Get contract metadata
This API allows fetching contract metadata.
API Doc
Curl call example
Path parameters:
chain
: [string] chain to work with. EitherTEZOS
orGHOSTNET
.contract
: [string] smart contract address
Example:
Last updated