Repository navigation
1.17.0
·
8 commits
to main
since this release
- Prove the wallet for a discount.
insumer_verify,insumer_acp_discountandinsumer_ucp_discounttake an optionalwalletProof({ message, signature }): an EIP-4361 message signed by the EVM wallet, with URIhttps://api.insumermodel.com/v1/merchants/{merchantId}. The field's description carries the exact message to sign. A proven wallet gets the store's full discount with no daily limit, and the response sayswalletProven: true. Without a proof, the store's terms for unproven wallets apply, anddiscountIfProvenshows what a proof would get. A proof that fails returns 401 and uses no credit. EVM wallets only; smart-contract wallets are not accepted yet. - Read the terms before calling.
insumer_get_merchant,insumer_list_merchantsandinsumer_check_discountdescribewalletTerms: what the store gives with and without proof. The free check'stotalDiscountis what an unproven wallet gets. insumer_configure_settingscarries the store's terms for unproven wallets:maxUnprovenDiscount(0 to 100, or null for the same as proven) andmaxDiscountsPerWalletPerDay(1 to 100, or null).insumer_validate_codedescribeswalletProvenon a code.