NFT Garden Docs
HomepageGitHubLanguageSign up for free
  • Welcome to NFT Garden Docs
  • Getting started
  • Web release note
  • API release note
    • Ver 1.2
    • Ver 1.1
    • Ver 1.0
  • Supported Blockchains
  • Pricing
  • EUs consumption
  • Web platform
    • Dashboard
    • Contract
      • Contract list screen
      • Create contract screen
    • NFT
      • NFT list screen
      • NFT minting screen
      • NFT transfer screen
    • API key
      • API keys
      • Generate API key
    • Webhook
      • Webhook settings
    • Account
      • Account
  • API Minting
    • NFT API
      • Ver 1.2.2
        • Auth
        • Resources
        • NFT minting
        • NFT transfer
        • NFT granted(mint + transfer)
        • Get the NFT list
        • Get NFT details
        • NFT Garden NFT determination
        • Create contract
        • Get Contract details
        • Wallet Address Generation
        • API rate limit
  • Tutorial
    • Connect wallet
    • Create contract
    • Mint NFT
    • Check NFT
    • Transfer NFT
  • Links
    • NFT Garden
    • GitHub
    • Blog
    • Contact
Powered by GitBook
On this page
  • createcollection
  • Basic Information
  • Request parameter
  • Blockchains that can be specified in the blockchain parameter
  • Sample requests
  • Example of successful response
  • Example of response in case of failure(status code 400)
  1. API Minting
  2. NFT API
  3. Ver 1.2.2

Create contract

createcollection

Create a new contract.

Basic Information

Property
Detail

URL

/api/v1/createcollection

Method

POST

Request parameter

Parameter
Type
Required
Detail

wallet_address

str

yes

生成するコレクションの所有者

name

str

yes

生成するコレクションの名称

blockchain

str

yes

生成先のブロックチェーン

description

str

No*

*Required only for Solana, Solana-testnet

image

str

No*

*Required only for Solana, Solana-testnet

is_locked

boolean

No

If true is specified, the NFT generated by the contract becomes a SoulBound Token. False if not specified.

enable_api

boolean

No

If true is specified, NFT creation is possible via API. If not specified, true.

enable_transfer

boolean

No

If true is specified, NFT can be transferred via API. False if not specified.

Blockchains that can be specified in the blockchain parameter

Sample requests

{
  "wallet_address": "111111111111111111111111111111111111111111",
  "blockchain": "solana",
  "name": "contract name 1",
  "description": "description of contract name 1",
  "image": "https://my.nftgarden.app/image.png"
}

Example of successful response

{
  "request": {
      "name": "contract name 1",
      "blockchain": "solana",
      "enable_api": true,
      "enable_transfer": false,
      "wallet_address": "111111111111111111111111111111111111111111",
      "description": "description of contract name 1",
      "image": "https://my.nftgarden.app/image.png"
  },
  "response": {
      "transaction_gdn_id": "1bd77cf7-a5ec-462c-ad06-faf942fefe21",
      "accepted_date": "2022-12-09 17:59:16"
  }
}

Example of response in case of failure(status code 400)

{
    "error": {
        "title": "Request Validation Error",
        "message": "blockchain field required"
    }
}
PreviousNFT Garden NFT determinationNextGet Contract details

Last updated 1 year ago

Please specify the name of the network item on the page.

Supported blockchain