aegis-security
Blockchain security API for AI agents. Scan tokens, simulate transactions, check addresses for threats.
What this skill does
# Aegis402 Shield Protocol
Blockchain security API for AI agents. Pay-per-request with USDC on Base or Solana.
## Skill Files
| File | URL |
|------|-----|
| **SKILL.md** (this file) | `https://aegis402.xyz/skill.md` |
| **package.json** (metadata) | `https://aegis402.xyz/skill.json` |
**Base URL:** `https://aegis402.xyz/v1`
## Quick Start
```bash
npm install @x402/fetch @x402/evm
```
```typescript
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';
const client = new x402Client()
.register('eip155:*', new ExactEvmScheme(yourEvmWallet));
const fetch402 = wrapFetchWithPayment(fetch, client);
// Payments happen automatically on Base (USDC)
const res = await fetch402('https://aegis402.xyz/v1/check-token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain_id=1');
const data = await res.json();
```
**Requirements:** USDC on Base Mainnet or Solana Mainnet
---
## Pricing
| Endpoint | Price | Use Case |
|----------|-------|----------|
| `POST /simulate-tx` | $0.05 | Transaction simulation, DeFi safety |
| `GET /check-token/:address` | $0.01 | Token honeypot detection |
| `GET /check-address/:address` | $0.005 | Address reputation check |
---
## Endpoints
### Check Token ($0.01)
Scan any token for honeypots, scams, and risks.
```bash
curl "https://aegis402.xyz/v1/check-token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain_id=1"
```
**Query params:**
- `chain_id` (optional): Network ID. Default: 1 (Ethereum). Use 8453 for Base.
**Response:**
```json
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"isHoneypot": false,
"trustScore": 95,
"risks": [],
"_meta": { "requestId": "uuid", "duration": 320 }
}
```
### Check Address ($0.005)
Verify if address is flagged for phishing or poisoning.
```bash
curl "https://aegis402.xyz/v1/check-address/0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
```
**Response:**
```json
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"isPoisoned": false,
"reputation": "NEUTRAL",
"tags": ["wallet", "established"],
"_meta": { "requestId": "uuid", "duration": 180 }
}
```
### Simulate Transaction ($0.05)
Predict balance changes and detect threats before signing.
```bash
curl -X POST "https://aegis402.xyz/v1/simulate-tx" \
-H "Content-Type: application/json" \
-d '{
"from": "0xYourWallet...",
"to": "0xContract...",
"value": "1000000000000000000",
"data": "0x...",
"chain_id": 8453
}'
```
**Request body:**
- `from` (required): Sender address
- `to` (required): Recipient/contract address
- `value` (required): Amount in wei
- `data` (optional): Calldata hex
- `chain_id` (optional): Network ID
**Response:**
```json
{
"isSafe": true,
"riskLevel": "LOW",
"simulation": {
"balanceChanges": [
{ "asset": "USDC", "amount": "-100.00", "address": "0x..." }
]
},
"warnings": [],
"_meta": { "requestId": "uuid", "duration": 450 }
}
```
---
## Payment Networks
| Network | Wallets |
|---------|---------|
| **Base (EVM)** | MetaMask, Coinbase Wallet |
| **Solana** | Phantom, Solflare |
### TypeScript - Base/EVM
```typescript
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';
import { privateKeyToAccount } from 'viem/accounts';
const signer = privateKeyToAccount('0x...');
const client = new x402Client()
.register('eip155:*', new ExactEvmScheme(signer));
const fetch402 = wrapFetchWithPayment(fetch, client);
```
### TypeScript - Solana
```typescript
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactSvmScheme } from '@x402/svm/exact/client';
import { createKeyPairSignerFromBytes } from '@solana/kit';
import { base58 } from '@scure/base';
const signer = await createKeyPairSignerFromBytes(base58.decode('your_base58_key'));
const client = new x402Client()
.register('solana:*', new ExactSvmScheme(signer));
const fetch402 = wrapFetchWithPayment(fetch, client);
```
### Python
```python
pip install x402[httpx]
from x402 import x402Client
from x402.http.clients import x402HttpxClient
client = x402Client()
async with x402HttpxClient(client) as http:
res = await http.get('https://aegis402.xyz/v1/check-token/0x...')
```
---
## Use Cases for AI Agents
### Before Swapping Tokens
```typescript
// Check if token is safe before swap
const tokenCheck = await fetch402(`https://aegis402.xyz/v1/check-token/${tokenAddress}?chain_id=8453`);
const { isHoneypot, trustScore, risks } = await tokenCheck.json();
if (isHoneypot || trustScore < 50) {
console.log('โ ๏ธ Risky token detected!');
}
```
### Before Signing Transactions
```typescript
// Simulate transaction before signing
const simulation = await fetch402('https://aegis402.xyz/v1/simulate-tx', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ from, to, value, data, chain_id: 8453 })
});
const { isSafe, riskLevel, warnings } = await simulation.json();
if (!isSafe || riskLevel === 'CRITICAL') {
console.log('๐จ Dangerous transaction!', warnings);
}
```
### Validating Recipient Addresses
```typescript
// Check if address is poisoned before sending
const addressCheck = await fetch402(`https://aegis402.xyz/v1/check-address/${recipientAddress}`);
const { isPoisoned, reputation } = await addressCheck.json();
if (isPoisoned) {
console.log('๐จ Address poisoning detected!');
}
```
---
## Risk Levels
| Level | Meaning |
|-------|---------|
| `SAFE` | No issues detected |
| `LOW` | Minor concerns, generally safe |
| `MEDIUM` | Some risks, proceed with caution |
| `HIGH` | Significant risks detected |
| `CRITICAL` | Do not proceed |
---
## Error Handling
```typescript
const response = await fetch402(url);
if (!response.ok) {
if (response.status === 400) {
// Invalid parameters
const { error } = await response.json();
console.error('Bad request:', error);
} else if (response.status === 402) {
// Payment failed (insufficient USDC)
console.error('Payment required - check USDC balance');
} else if (response.status === 500) {
// Service error
const { error, details } = await response.json();
console.error('Service error:', error, details);
}
}
```
---
## Supported Chains
| Chain | ID | check-token | check-address | simulate-tx |
|-------|-----|-------------|---------------|-------------|
| Ethereum | 1 | โ
| โ
| โ
|
| Base | 8453 | โ
| โ
| โ
|
| Polygon | 137 | โ
| โ
| โ
|
| Arbitrum | 42161 | โ
| โ
| โ
|
| Optimism | 10 | โ
| โ
| โ
|
| BSC | 56 | โ
| โ
| โ
|
| Avalanche | 43114 | โ
| โ
| โ
|
---
## Health Check (Free)
```bash
curl https://aegis402.xyz/health
```
```json
{
"status": "healthy",
"circuitBreaker": { "state": "CLOSED" }
}
```
---
## Links
- **Website**: https://aegis402.xyz
- **API Docs**: https://aegis402.xyz/api.html
- **Demo**: https://aegis402.xyz/demo.html
- **x402 Protocol**: https://docs.x402.org
---
๐ก๏ธ Built for the Agentic Economy. Powered by x402 Protocol.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only โ no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.