Egge on Nostr: PSA: npub.cash just had a small change in its public API! While /claim used to return ...
PSA: npub.cash just had a small change in its public API!
While /claim used to return a token containing all pending proofs, it now returns a token containing max. 100 proofs! Additionally there are two new keys in the payload:
- count: how many proofs are included
- total pending: how many proofs are pending in total for the user
This change makes sure that the token does not get too long for handling it and lets API users now if there are more proofs pending.
I am not perfectly happy with this yet and I will continue looking into other ways to handle these edge cases. 🫡💜
Published at
2024-08-10 07:26:52Event JSON
{
"id": "42c844503e9c97fbb18295101d34d9a2e66aeacdf6f1476c7994430418623e39",
"pubkey": "ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe",
"created_at": 1723274812,
"kind": 1,
"tags": [],
"content": "PSA: npub.cash just had a small change in its public API!\n\nWhile /claim used to return a token containing all pending proofs, it now returns a token containing max. 100 proofs! Additionally there are two new keys in the payload:\n\n- count: how many proofs are included\n- total pending: how many proofs are pending in total for the user\n\nThis change makes sure that the token does not get too long for handling it and lets API users now if there are more proofs pending.\n\nI am not perfectly happy with this yet and I will continue looking into other ways to handle these edge cases. 🫡💜",
"sig": "2e4a92611bfd37f0f8842fc6995aa37e391560ad89d5bb54d8f82df6c85cf33c94c9371d7cad99b98bb18f2a41261211db6c4cbdc33e382da26975f594cb4324"
}