Comment on page
Create a Living Asset
To follow this example you will need to have installed on your development machine:
As instructed in the Github Readme, after cloning into the project run
cd nodejs && npm ci
to setup the environment and install all relevant packages.
Navigate to the file
nodejs/asset_create.js; open it and edit the first three variables to the universe owner credentials (private key, public address, universe id):
Feel free to modify the asset properties and metadata below, as you see fit, then save the file.
From a terminal, navigate to the
nodejsfolder and run
The command will output a GraphQL mutation with the signed query, in the correct format, to the terminal.
You may use any method to send this mutation to our GraphQL endpoint; though in this example we are using GraphQL playground. Open the editor and point it to the url provided. Paste the mutation directly into the left-hand panel of the ID and press the middle play button to send it. In the right-hand panel, you will see the ID of the newly created asset.