Skip to content

Comments

Add optional --compliance flag with OFAC screening#1

Open
shulam-pay wants to merge 1 commit intoBankrBot:mainfrom
shulam-pay:feat/shulam-compliance-flag
Open

Add optional --compliance flag with OFAC screening#1
shulam-pay wants to merge 1 commit intoBankrBot:mainfrom
shulam-pay:feat/shulam-compliance-flag

Conversation

@shulam-pay
Copy link

Summary

  • Adds checkCompliance(address, apiKey?) function for optional OFAC screening
  • blocked status exits with code 1, held prints warning, clear prints success
  • No API key = silently skip (zero friction for existing users)
  • Zero new dependencies (raw fetch)

Test plan

  • blocked address triggers process.exit(1)
  • Missing API key skips gracefully with info message
  • clear and held statuses handled correctly
  • Manual CLI integration test

🤖 Generated with Claude Code

- `checkCompliance(address, apiKey?)` screens against OFAC SDN
- blocked → process.exit(1), no API key → skip with info message
- Zero new dependencies (raw fetch)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant