Fetch and cache a coin price without hammering the API
One request per interval for the whole site, an atomic cache write, and a stale copy served rather than nothing when the feed is down.
4 entries
One request per interval for the whole site, an atomic cache write, and a stale copy served rather than nothing when the feed is down.
One call that stops the worst failure mode on a faucet: telling a user they were paid when the wallet was already empty.
Faucet software already knows how to talk to shortlink providers. Match the contract they expect and operators can point their existing config at you without writing anything.
A minimal, correct call to FaucetPay's /api/v1/send endpoint, including the part almost everyone gets wrong: the amount is in the coin's smallest unit, not USD.