Skip to content

feat: Add allowlist lookup endpoint for single address#500

Merged
Dev-AdeTutu merged 1 commit into
Dev-AdeTutu:mainfrom
lajay-faith:feat/allowlist-lookup-endpoint
Jun 29, 2026
Merged

feat: Add allowlist lookup endpoint for single address#500
Dev-AdeTutu merged 1 commit into
Dev-AdeTutu:mainfrom
lajay-faith:feat/allowlist-lookup-endpoint

Conversation

@lajay-faith

@lajay-faith lajay-faith commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #441


Summary

Adds a lightweight lookup endpoint to check allowlist membership for a single address. This eliminates the need for clients to fetch the full allowlist and search client-side.

Changes

  • Added GET /api/allowlist/:address endpoint
  • Validates address is a valid Stellar Ed25519 public key
  • Returns { address, allowed: true|false } format
  • Returns 200 status regardless of membership (not 404 for non-members)
  • No authentication required (read-only public query)
  • Cleaned up duplicate code in allowlist.ts

Implementation Details

  • Queries the full allowlist via contract and checks for address membership
  • Uses StellarSdk.StrKey.decodeEd25519PublicKey() for validation
  • Returns 400 only for invalid address format
  • Returns 200 with allowed: false for valid addresses not in allowlist

Acceptance Criteria

  • GET /api/allowlist/:address returns { address, allowed: true|false }
  • Validates the address is a valid Stellar public key
  • Returns 200 regardless (not 404 for non-members)
  • No auth required (read-only public query)

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@lajay-faith Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Dev-AdeTutu Dev-AdeTutu merged commit 02c10a5 into Dev-AdeTutu:main Jun 29, 2026
0 of 2 checks passed
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.

feat(backend): add GET /api/allowlist/:address endpoint to check if a single address is allowlisted

2 participants