Playdapp Developers V2
  • Introduction
  • Prerequisites
  • QuickStart
  • API Guide
    • Overview
    • Authentication
    • HTTP Status Code
    • Diagrams
      • Basic
      • Shop in Shop
  • API Reference
    • APIs Overview
    • Basic
    • Shop in Shop
      • Base
      • P2E
Powered by GitBook
On this page
  • Mint NFT
  • Mint NFT by user's wallet address
  • List NFTs
  • List NFT info
  • Get NFT Item
  • Get the specific NFT info
  1. API Reference

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

Name
Type
Description

svc-api-key*

String

svc-api-key is issued for each registered service(ex> game) of partner.

signature*

String

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

Name
Type
Description

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.

{
  "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

Name
Type
Description

walletAddress

String

User's wallet address

offset

number

Default: 0

limit

number

Default: 100

Headers

Name
Type
Description

svc-api-key*

String

svc-api-key is issued for each registered service(ex> game) of partner.

signature*

String

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

Name
Type
Description

nftId*

String

NFT ID for the mint request

Headers

Name
Type
Description

svc-api-key*

String

svc-api-key is issued for each registered service(ex> game) of partner.

signature*

String

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).
  }
}
PreviousAPIs OverviewNextShop in Shop

Last updated 2 years ago

The result of an API request signed by a secret kregistered service(ex> game) of partner. For more details, refer to .

Metadata follows OpenSea standard type, please refer to

The result of an API request signed by a secret key issued per registered service(ex> game) of partner. For more details, refer to .

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
Attributes topic in the OpenSea Metadata document.
Authentication
Authentication