Vote and cashback routes
The two signature-gated pairs, step by step
Vote commitment (step 1)
POST
/v1/votes/step1Get a commitment to sign for the votes you are about to cast.
Request Body
Responses
objectThe EIP-712 typed-data envelope to sign — types, primaryType, domain and message. Echo back exactly what step 1 returned.
stringA DECIMAL string — VoteCommitment's nonce is a uint256. The same value appears twice in two forms: message.nonce is the bytes32 the digest is built over, and this is what step 2 wants back. Send this one.
Cashback-rate commitment (step 1)
POST
/v1/cashback-rate/step1Get a commitment to sign for the cashback rate you are about to set.
Request Body
Responses
objectThe EIP-712 typed-data envelope to sign — types, primaryType, domain and message. Echo back exactly what step 1 returned.
Set cashback rate (step 2)
POST
/v1/cashback-rate/step2Submit the signed commitment and store the rate.
Next steps
- Identity and commitments — the two-step pattern and what each signature covers
- The eight commitments —
VoteCommitmentandCashbackRateCommitment - Commission & cashback — what the pledge costs and what it buys