2. Deploy Unirep contract

Deploy the UniRep smart contract with a private key.

npx ts-node cli/index.ts deploy -d $USER_PRIVATE_KEY

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

See: cli/deploy for more deploy options.

Then the Unirep contract address will be printed:

Unirep: 0x0165878A594ca255338adfa4d48449f69242Eb8F
  • Then we use the Unirep contract's address to interact with.

  • Export contract address to the environment:

export UNIREP_CONTRACT_ADDRESS=0x0165878A594ca255338adfa4d48449f69242Eb8F

Last updated