Create contract

createcollection

Create a new contract.

Basic Information

PropertyDetail

URL

/api/v1/createcollection

Method

POST

Request parameter

ParameterTypeRequiredDetail

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

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

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

Last updated