Links

Creating a Token

The following page explains how to create your Enjin Collection using the Enjin Platform UI or the Enjin Platform API.

Create a Token using the Enjin Platform UI

Log into the Platform UI and navigate to the Tokens page. Next, click the Create Token button and fill in the form to set up the transaction that will create your token on-chain.

Create a Token using the Enjin Platform API

Please refer to the API Docs for the CreateToken mutation, or use the GraphiQL Docs Explorer (available once you have set an Authorization header, or are logged in to the Platform UI).
mutation CreateToken {
CreateToken(
recipient: "0xc4571a3720604eb1901dad5444376f91409814a2806686c6e6c4f2d664b422a3"
collectionId: "10941"
params: {
tokenId:{integer:1}
initialSupply:10
unitPrice:10000000000000000
cap: {
type:INFINITE
}
}
) {
id
transactionId
transactionHash
method
state
encodedData
wallet {
account {
publicKey
address
}
}
}
}
This mutation will set up a new transaction that once finalized on-chain will create the new token with the id and options you specified. A WebSocket event will also be fired so you can pick up the token creation in real time by listening to the app channel on the WebSocket.
© 2023 Enjin Pte. Ltd.