Skip to content

Handle empty fee payers#350

Merged
raymondjacobson merged 2 commits into
mainfrom
rj-fee-payer
Sep 2, 2025
Merged

Handle empty fee payers#350
raymondjacobson merged 2 commits into
mainfrom
rj-fee-payer

Conversation

@raymondjacobson
Copy link
Copy Markdown
Member

@raymondjacobson raymondjacobson commented Aug 29, 2025

with fee payer set

curl -X POST http://localhost:1323/v1/rewards/claim \
  -H "Content-Type: application/json" \
  -d '{
    "challengeId": "b",  
    "specifier": "1:618d259a",  
    "userId": "7eP5n" 
  }'
{"data":[{"challengeId":"b","specifier":"1:618d259a","amount":5,"signatures":["3hm5gEntRjKQN1vqdGtWbWb48dtfvJ17XwpPaDLKismq1vVqkQKVC6s2MwfYmqQyc49WcEftezA8DckbtxdV4cU7"]}]}

with no fee payer set

curl -X POST http://localhost:1323/v1/rewards/claim \
  -H "Content-Type: application/json" \
  -d '{
    "challengeId": "b",
    "specifier": "1:7e42b5b1",
    "userId": "7eP5n"
  }'
{"data":[{"challengeId":"b","specifier":"1:7e42b5b1","amount":5,"signatures":null,"error":"no fee payers available"}]}

@raymondjacobson raymondjacobson merged commit a3e2ba1 into main Sep 2, 2025
5 checks passed
@raymondjacobson raymondjacobson deleted the rj-fee-payer branch September 2, 2025 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants