Paymaster
The paymaster is a Rust project that supports interaction between the smart contract ClaimBatchProcessor. This routes the endpoints [GET] /healthz and [POST] /batch-claim.
The [GET] /healthz endpoint is for checking the health of the paymaster.
The [POST] /batch-claim endpoint is for batching the claims. For this endpoint, it requires the application/json type data as the body, and the JSON must have the below values.
amountproofsignaturetokenIdsuserAddress
These values will be passed to the function claim on the ClaimBatchProcessor contract. So, the flow will be like this.
User
=> POST `/batch-claim` to the Paymaster
=> `ClaimBatchProcessor`'s `claim()`
=> Distributor's `claim()`
=> StreamingNFT's `createBatchStream()`