Skip to main content
Version: 1.0.1

2. Deploy Unirep contract

Deploy the UniRep smart contract with a private key.

npx ts-node cli/index.ts deploy -d $ATTESTER_PRIVATE_KEY
info

NOTE: -d is the deployer's private key.

See: cli/deploy for more deploy options.

Then the Unirep contract address will be printed:

Unirep: 0x90118d110B07ABB82Ba8980D1c5cC96EeA810d2C
  • Then we use the Unirep contract's address to interact with.
  • Export contract address to the environment:
export UNIREP_CONTRACT_ADDRESS=0x90118d110B07ABB82Ba8980D1c5cC96EeA810d2C