@libertasinception/shield
v0.1.0
Published
Security shield module — threat detection, transaction screening, and compliance verification
Maintainers
Readme
@libertasinception/shield
Security shield module — threat detection, transaction screening, and compliance verification
Installation
npm install @libertasinception/shieldQuick Start
import { ShieldClient } from "@libertasinception/shield";
const shield = new ShieldClient(httpClient);
await shield.configure({ level: "strict", alertWebhook: "https://..." });
const result = await shield.screen({
from: "n1a1...", to: "n1a1...", amount: "1000000"
});
console.log(result.status); // "approved" | "flagged" | "blocked"
await shield.send({ recipient: "n1a1...", amount: "1000000", denom: "uphi" });Features
- Transaction screening and threat detection
- Configurable security levels
- Alert webhooks
- Protected transfers
API Reference
Classes
ShieldClient
Types
ShieldConfigShieldTransferShieldTransferStatusShieldConfigParamsShieldSendParams
Dependencies
@libertasinception/corezod
Requirements
- Node.js >= 18.0.0
- TypeScript >= 5.7 (recommended)
Links
License
MIT - see LICENSE for details.
