POST
/
contracts
/
{contractId}
/
token-types

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <API_KEY>.

Path Parameters

contractId
string
required

The ID of the contract.

Body

application/json
name
string

The name of the token type. Each token type within a contract must have a unique name.

description
string

A brief description of the token type.

maxSupply
number

The maximum supply of the token type.

Required range: x < 2000000000
traits
object

A dictionary of traits for the token type, where the key is the trait name and the value is the trait value.

imageUrl
string

The URL of the image representing the token type. Supported formats are PNG, JPEG, GIF, or MP4.

Response

201 - application/json
id
string

The id of the token type.

uriNumber
number

The URI number associated with the token type.

contractId
string

The id of the contract to which the token type belongs.

name
string

The name of the token type.

description
string | null

A brief description of the token type.

maxSupply
number

The maximum supply of the token type.

Required range: x < 2000000000
currentSupply
number

The current supply of the token type.

traits
object

A dictionary of traits for the token type, where the key is the trait name and the value is the trait value.

imageUrl
string | null

The URL of the image representing the token type. Supported formats are PNG, JPEG, GIF, or MP4.

metadataUrl
string

The URL where the metadata JSON of the token type is located.

createdAt
string

The timestamp from when the token type was created.

updatedAt
string

The timestamp from when the token type was last updated.