Skip to content

Enforce instance-based daily request limit on testnet faucet #6964

@Parsh

Description

@Parsh

Problem:

The testnetFaucet endpoint applies no cap on how many times a single app can request test satoshis per day. An app can call getTestcoins() an unlimited number of times, making it possible to drain faucet funds rapidly and starve other users of testnet coins.

Expected behaviour:

  • Each app is identified by its appId when calling the faucet.
  • An app is limited to 5 faucet requests per UTC calendar day.
  • Requests beyond the daily limit are rejected with a clear error until the counter resets at midnight UTC.
  • The client surfaces a user-readable message when the limit is reached.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions