Deploy an NFT Contract
After generating a contract for the NFT collection, you need to deploy the contract.
You will send a POST request to /nft/<nft_collection_name>
endpoint, calling the :deploy
method, to deploy the NFT collection smart contract.
Deploy the NFT contract.
POST
https://api.playfix.io/nft/<nft_collection_name>:deploy
Path Parameters
nft_collect_name*
String
The name of the NFT. This will start with a prefix of "nfts/
" followed by a ULID.
Headers
Authorization*
String
Bearer <your_access_token>
Request Body
clientSide*
Object
Client side configuration for deploying the NFT contract.
clientSide.address*
String
The smart contract address; automatically generated by MetaMask.
clientSide.network*
String
The network where the collection will be deployed.
clientSide.txHash*
String
The smart contract creation transaction hash, automatically generated by MetaMask.
Example Curl API Call
Example Python API Call
You must connect to MetaMask to run this process.
Request Body
clientSide
: An object containing the configurations for deploying the NFT collection smart contract using MetaMask.network
: The network where the collection will be deployed.address
: The smart contract address. This is automatically generated by MetaMask.txHash
: The smart contract creation transaction hash, automatically generated by MetaMask.
Response
Once you deploy the NFT collection contract, you can no longer modify or delete an NFT item in the collection, the NFT collection or the collection contract.
Last updated