- nodejs
The recommended way to install node is using Node Version Manager (nvm).
Install nvm using the following command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bashRestart your terminal and verify that nvm is installed:
command -v nvmNext, use nvm to install node:
nvm install nodeTo verify that the installation was successful, check the Node version:
node --versionYou should see output similar to the following:
v22.7.0After install the node, you need to install the dependencies:
npm installBefor run the script you need to run:
mv .env.example .envReplace PRIVATE_KEY to you own account private key.
node scripts/main.js mint --name alice.reputationDID name show ends with .reputation, and one address can only mint one DID.
node scripts/main.js reputation --name alice.reputationnode scripts/main.js stake -t 0x84132803A2519BafCCA883558A67A522795753C5 -a 1000000000000000000000Currently only the support stake Tether USD and our test token MCK
- MCK token Address:
0x84132803A2519BafCCA883558A67A522795753C5 - Tether USD Address:
0x0fF5393387ad2f9f691FD6Fd28e07E3969e27e63
Currently, KYC requires the signature of the KYC provider before it can be added. There is no backend service for KYC service providers, so this scripts does not have an interface call for the time being.