Mint an NFT to a Wallet
Last updated
Last updated
To mint an NFT directly to a Playfix wallet, send a POST request to the wallet/erc721/tokens
endpoint, calling the :mint
method, and passing the wallet name in the request body.
POST
https://api.playfix.io/wallet/erc721/tokens:mint
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Example cURL API Call
Example Python API Call
Request Body
wallet
- Name of the wallet to mint the NFT to. This should the value of name from a previously created wallet. It begins with "wallets/
", followed by a ULID.
contractAddress
- The NFT item's contract address.
tokenId
- The unique number
assigned to the NFT item when the NFT collection contract is deployed.
password
- The 32-character long password to the wallet. This should be the password entered when creating the wallet.
Response
Authorization*
String
Bearer <your_access_token>
wallet*
String
Name of the wallet that will hold the newly minted NFT. This should be the value of name
from a previously created wallet. It begins with "wallets/
" followed by a ULID.
password*
String
The 32-character long password to the wallet. This should be the password entered when creating the wallet.
contractAddress*
String
NFT Contract Address.
tokenId*
String
This is the unique number
assigned to the NFT item when the NFT collection contract is deployed.