User Interaction Functions
How user can interact in the Unirep protocol
Publish a post
publishPost
publishPostnpx ts-node cli/index.ts publishPost
[-h]
[-e ETH_PROVIDER]
-tx TEXT
-id IDENTITY
-n EPOCH_KEY_NONCE
[-mr MIN_REP]
-x CONTRACT
[-db]
(-dp | -d ETH_PRIVKEY)Options
-e ETH_PROVIDER, --eth-provider ETH_PROVIDER
A connection string to an Ethereum provider. Default: http://localhost:8545
-tx TEXT, --text TEXT
The text written in the post
-id IDENTITY, --identity IDENTITY
The (serialized) user's identity
-n EPOCH_KEY_NONCE, --epoch-key-nonce EPOCH_KEY_NONCE
The epoch key nonce
-mr MIN_REP, --min-rep MIN_REP
The minimum reputation score the user has
-x CONTRACT, --contract CONTRACT
The Unirep Social contract address
-db, --from-database Indicate if to generate proving circuit from database
-dp, --prompt-for-eth-privkey
Whether to prompt for the user's Ethereum private key and ignore -d / --eth-privkey
-d ETH_PRIVKEY, --eth-privkey ETH_PRIVKEY
The deployer's Ethereum private keyOptions inherited from parent commands
Leave a comment
leaveComment
leaveCommentOptions
Options inherited from parent commands
Upvote and downvote
vote
voteOptions
Options inherited from parent commands
Last updated