Comment on page
2PI requires npm and node.js 14 or above to work properly.
Credentials are required when initializing 2PI's SDK or interacting with its API. Our CLI will guide you through creating a new set of credentials. To get started, run the following command in your console.
$ npx @2pi-network/create-app register
You will be prompted to input some basic information and confirm your email.
Check your email and paste the confirmation token received here:
A crypto wallet is required to interact with our protocol.
We recommend you to create a new one for the sole purpose of operating with our contracts.
Now it is time to decide whether you want to use an existing wallet or create a new one locally.
A crypto wallet is required to interact with our protocol. Now it is time to decide whether you want to use an existing wallet or create a new one locally.
Do you want to generate a new wallet?
(This will be generated locally and we keep no record of it.) [Y/n]:
If you decide to create a new wallet, our CLI will generate one for you locally and display your credential. Make sure you save your credentials in a safe place for later use.
Your API key - Emzxyb2RJmB
Your API secret - eMbP24ZFss2y6R
Your wallet public address - 0x06985AB45548B1e4167eff6ED113Bd97f36f4280
Your Mnemonic - mutual dust monkey bleak radar shield universe glue dad pumpkin slush artist
(Make sure you write down and keep your mnemonic in a safe place. We don't keep record of it anywhere.)