Getting credentials
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.
1
$ npx @2pi-network/create-app register
Copied!
You will be prompted to input some basic information and confirm your email.
1
Organization name:
2
Full Name:
3
Email:
4
Password:
5
Check your email and paste the confirmation token received here:
6
7
A crypto wallet is required to interact with our protocol.
8
We recommend you to create a new one for the sole purpose of operating with our contracts.
9
Now it is time to decide whether you want to use an existing wallet or create a new one locally.
Copied!
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.
1
Do you want to generate a new wallet?
2
(This will be generated locally and we keep no record of it.) [Y/n]:
Copied!
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.
1
Your API key - Emzxyb2RJmB
2
Your API secret - eMbP24ZFss2y6R
3
Your wallet public address - 0x06985AB45548B1e4167eff6ED113Bd97f36f4280
4
Your Mnemonic - mutual dust monkey bleak radar shield universe glue dad pumpkin slush artist
5
(Make sure you write down and keep your mnemonic in a safe place. We don't keep record of it anywhere.)
Copied!
Copy link