ioID Step by Step Tutorial
Last updated
Last updated
This documentation portal is currently undergoing updates to align with the IoTeX 2.0 Whitepaper release. Information provided here may be incomplete, or out-of-date. Please use this portal for preliminary reference only, and check out the official IoTeX 2.0 Whitepaper for updated information.
.2024 | IoTeX
This tutorial demonstrates how to integrate ioID into your DePIN project and is divided into two parts:
1. Project Registration on the IoTeX blockchain, explained in this page.
2. Device Registration, which varies based on the scenario and may involve integrating ioID either directly on the device or in the cloud. Both cases are described in the next pages.
Ensure you deployed an ERC721 NFT contract to "tokenize" your devices
See how to deploy an NFT Token on IoTeX using Hardhat:
and note the deployed contract address.
For a quicker option, you can deploy a standard NFT contract using its bytecode with the following ioctl command:
Check the transaction link to find the address of the contract just deployed.
We will refer to this contract as the "Device NFT" from now on. Let's also export the contract address for convenience:
Take note of your Project ID
and set it as an environment variable:
Bind the Device NFT to your Project ID
Reserve a few ioID for your project (10 in the example command below):
Depending on the development stage of a DePIN project, there are multiple ways it can integrate ioID for device registration. In the next pages, we share different flows tailored to various use cases.