Basic
Describes APIs provided to partners who directly implement wallet linkage and do not use NFT market, burn, staking, and reward functions.
Mint NFT
Mint NFT by user's wallet address
Refer to diagram
Mint NFT by user's wallet address
POST
https://{itemManagerHost}/v1/nfts
Headers
svc-api-key*
String
svc-api-key is issued for each registered service(ex> game) of partner.
signature*
String
The result of an API request signed by a secret kregistered service(ex> game) of partner. For more details, refer to Authentication.
timestamp*
String
The time at which the request was sent, set to a Unix Epoch Timestamp value.
nonce*
String
Random string of 8 characters, composed of uppercase or lowercase alphabets and numbers. A nonce can't be reused within 20 seconds after the successful request.
Request Body
walletAddress*
String
User's wallet address
serviceContractId*
Number
The contract ID registered for the item transaction for the registered service(ex> game) of partner
metadata*
Object
{
name?: String
image?: String
description?: String
attributes!: Array<Attribute>
}
name (optional)
: The name for the item. If omitted, the name entered when registering the item on the PlayDapp Developers Console is used.
image (optional)
: The image url for the item. If omitted, the image url entered when registering the item on the PlayDapp Developers Console is used.
description (optional)
: The description for the item. If omitted, the description entered when registering the item on the PlayDapp Developers Console is used.
attributes (required)
: Define attributes (skills, levels, etc.) to be given to items registered through PlayDapp Developers Console. These attributes are used as metadata for the NFT.
Metadata follows OpenSea standard type, please refer to Attributes topic in the OpenSea Metadata document.
{
"result": true,
"data": {
"nftId": 1, // NFT ID for the mint request
"walletAddress": "0x9cea32...", // User's wallet address
"serviceContractId": 1, // The contract ID registered for the item transaction for the game
"metadata": {
"name": "BRAM SR", // Name of item registered in PlayDapp Developers Console
"image": "https://presale-asset.playdapp.com/token_thumb/playz_bram_sr.png", // Image of item registered in PlayDapp Developers Console
"description": "this item is BRAM SR for pet!", // Description of item registered in PlayDapp Developers Console
"attributes": [ // Attributes to be used as NFT metadata
{
"trait_type": "Base",
"value": "Starfish"
}
]
},
"status": "minting" // available values: 'minting', 'nft'
}
}
List NFTs
List all NFT information mapped to the user.
List NFT info
GET
https://{itemManagerHost}/v1/nfts
Query Parameters
walletAddress
String
User's wallet address
offset
number
Default: 0
limit
number
Default: 100
Headers
svc-api-key*
String
svc-api-key is issued for each registered service(ex> game) of partner.
signature*
String
The result of an API request signed by a secret key issued per registered service(ex> game) of partner. For more details, refer to Authentication.
timestamp*
String
The time at which the request was sent, set to a Unix Epoch Timestamp value.
nonce*
String
Random string of 8 characters, composed of uppercase or lowercase alphabets and numbers. A nonce can't be reused within 20 seconds after the successful request.
{
"result": true,
"data": {
"total": 2,
"list": [
{
"nftId": 1, // NFT ID for the mint request
"walletAddress": "0x9cea32...", // User's wallet address
"serviceContractId": 1, // The contract ID registered for the item transaction for the registered service(ex> game) of partner
"metadata": {
"name": "BRAM SR", // Name of item registered in PlayDapp Developers Console
"image": "https://presale-asset.playdapp.com/token_thumb/playz_bram_sr.png", // Image of item registered in PlayDapp Developers Console
"description": "this item is BRAM SR for pet!", // Description of item registered in PlayDapp Developers Console
"attributes": [ // Attributes to be used as NFT metadata
{
"trait_type": "Base",
"value": "Starfish"
}
]
},
"status": "nft", // available values: 'minting', 'nft'
"network": "polygon", // This field is passed if "status": "nft" (nft mint transaction completed).
"tokenId": "294923", // This field is passed if "status": "nft" (nft mint transaction completed).
"transactionHash": "0xb0a5ec48449ef17b...", // This field is passed if "status": "nft" (nft mint transaction completed).
"marketUrl": "https://playdapp.com/item/polygon/0xc58C5A1c.../294923" // This field is passed if "status": "nft" (nft mint transaction completed).
},
{
"nftId": 2, // NFT ID for the mint request
"walletAddress": "0x9cea32...", // User's wallet address
"serviceContractId": 1, // The contract ID registered for the item transaction for the registered service(ex> game) of partner
"metadata": {
"name": "BRAM SR 2", // Name of item registered in PlayDapp Developers Console
"image": "https://presale-asset.playdapp.com/token_thumb/playz_bram_sr_2.png", // Image of item registered in PlayDapp Developers Console
"description": "this item is BRAM SR 2 for pet!", // Description of item registered in PlayDapp Developers Console
"attributes": [ // Attributes to be used as NFT metadata
{
"trait_type": "Base",
"value": "Starfish"
}
]
},
"status": "minting" // available values: 'minting', 'nft'
}
],
"offset": 0,
"limit": 10
}
}
Get NFT Item
Get the specific NFT information.
Get the specific NFT info
GET
https://{itemManagerHost}/v1/nfts/{nftId}
Path Parameters
nftId*
String
NFT ID for the mint request
Headers
svc-api-key*
String
svc-api-key is issued for each registered service(ex> game) of partner.
signature*
String
The result of an API request signed by a secret key issued per registered service(ex> game) of partner. For more details, refer to Authentication.
timestamp*
String
The time at which the request was sent, set to a Unix Epoch Timestamp value.
nonce*
String
Random string of 8 characters, composed of uppercase or lowercase alphabets and numbers. A nonce can't be reused within 20 seconds after the successful request.
{
"result": true,
"data": {
"nftId": 1, // NFT ID for the mint request
"walletAddress": "0x9cea32...", // User's wallet address
"serviceContractId": 1, // The contract ID registered for the item transaction for the registered service(ex> game) of partner
"metadata": {
"name": "BRAM SR", // Name of item registered in PlayDapp Developers Console
"image": "https://presale-asset.playdapp.com/token_thumb/playz_bram_sr.png", // Image of item registered in PlayDapp Developers Console
"description": "this item is BRAM SR for pet!", // Description of item registered in PlayDapp Developers Console
"attributes": [ // Attributes to be used as NFT metadata
{
"trait_type": "Base",
"value": "Starfish"
}
]
},
"status": "nft", // available values: 'minting', 'nft'
"network": "polygon", // This field is passed if "status": "nft" (nft mint transaction completed).
"tokenId": "294923", // This field is passed if "status": "nft" (nft mint transaction completed).
"transactionHash": "0xb0a5ec48449ef17b...", // This field is passed if "status": "nft" (nft mint transaction completed).
"marketUrl": "https://playdapp.com/item/polygon/0xc58C5A1c.../294923" // This field is passed if "status": "nft" (nft mint transaction completed).
}
}
Last updated