Last updated
Last updated
In this example, we will use reactJS, Ether.js and formik to handle the form on the frontend. You will find a full code example with all imports at the end of tutorial.
The user will create his handle.
Bonus: You can check if an handle is already taken and include it in the form validation by using a subgraph query.
On submit, we create a new transaction and call the mint function of the TalentLayerId contract.
After the transaction succeeds, the new user will be viewable via our subgraph api.
Form and submit:
processRequest utils function:
Minting a TalentLayer ID is the first step that your users will need to do when registering for an account on your platform.