check_ban_status
Checks an npub's membership status to determine if it is banned under the DPYC Social Contract. Returns true only for known banned members, letting operators enforce bans during credit purchases.
Instructions
Check whether an npub is banned from the DPYC Social Contract.
Looks up the member in the community registry and checks whether their status is "banned". Unknown npubs are not considered banned (they simply aren't members).
Free, unauthenticated. Used by operators during the cold path (credit purchases) to enforce community bans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||