plugin-x402-endpoints 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +282 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -0
- package/dist/index.d.ts +150 -11
- package/dist/index.js +282 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2123,6 +2123,288 @@ var catalog_default = {
|
|
|
2123
2123
|
"content"
|
|
2124
2124
|
]
|
|
2125
2125
|
}
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
tool: "crypto_pre_trade_verdict",
|
|
2129
|
+
action: "X402_CRYPTO_PRE_TRADE_VERDICT",
|
|
2130
|
+
path: "/crypto/pre-trade-verdict",
|
|
2131
|
+
method: "GET",
|
|
2132
|
+
price: "$0.05",
|
|
2133
|
+
description: "One-call GO/CAUTION/NO-GO pre-trade verdict for AI trading agents: fuses token safety (honeypot, rug, tax, holders), counterparty wallet sanctions screening (OFAC/mixer) and cross-exchange market signal into a single decision with a signed, offline-verifiable receipt. Should I buy this token now? Replaces three separate calls (token-safety + wallet-screen + signal) with one fused GO/NO-GO verdict. EVM chains and Solana. Price: $0.05 per call (x402 payment, USDC on Base mainnet). One-call GO/CAUTION/NO-GO pre-trade verdict fusing token safety (honeypot/rug/tax) + counterparty sanctions screening (OFAC/mixer) + cross-exchange market signal, with a signed receipt. Replaces three calls. EVM + Solana. Input: token (+chain, optional wallet).",
|
|
2134
|
+
llm_usage_prompt: "One-call GO/CAUTION/NO-GO pre-trade verdict fusing token safety (honeypot/rug/tax) + counterparty sanctions screening (OFAC/mixer) + cross-exchange market signal, with a signed receipt. Replaces three calls. EVM + Solana. Input: token (+chain, optional wallet).",
|
|
2135
|
+
tags: [
|
|
2136
|
+
"pre-trade-verdict",
|
|
2137
|
+
"token-safety",
|
|
2138
|
+
"go-no-go",
|
|
2139
|
+
"counterparty-screen",
|
|
2140
|
+
"trading-decision"
|
|
2141
|
+
],
|
|
2142
|
+
inputSchema: {
|
|
2143
|
+
type: "object",
|
|
2144
|
+
properties: {
|
|
2145
|
+
token: {
|
|
2146
|
+
type: "string",
|
|
2147
|
+
description: "Token contract (EVM 0x+40hex) or SPL mint (base58) to evaluate"
|
|
2148
|
+
},
|
|
2149
|
+
chain: {
|
|
2150
|
+
type: "string",
|
|
2151
|
+
description: "base | ethereum | bsc | polygon | arbitrum | optimism | avalanche | solana (default base)"
|
|
2152
|
+
},
|
|
2153
|
+
wallet: {
|
|
2154
|
+
type: "string",
|
|
2155
|
+
description: "Optional counterparty wallet to screen (OFAC/mixer)"
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
required: [
|
|
2159
|
+
"token"
|
|
2160
|
+
]
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
tool: "agent_ledger",
|
|
2165
|
+
action: "X402_AGENT_LEDGER",
|
|
2166
|
+
path: "/agent/ledger",
|
|
2167
|
+
method: "GET",
|
|
2168
|
+
price: "$0.04",
|
|
2169
|
+
description: "Your AI agent's books in one call: structured USDC accounting for any wallet on Base (the x402 settlement asset) \u2014 revenue (incoming) vs expenses (outgoing), net, transaction count, top paying counterparties and payees, and a weekly breakdown over a 7d/30d/90d window. Turnkey bookkeeping / expense and revenue report an agent can drop straight into its accounting. The value is the structuring, not raw data access. Price: $0.04 per call (x402 payment, USDC on Base mainnet). Structured USDC accounting for a wallet on Base: revenue vs expenses, net, tx count, top payers/payees, weekly breakdown. Your agent's books in one call. Input: wallet (+period 7d/30d/90d).",
|
|
2170
|
+
llm_usage_prompt: "Structured USDC accounting for a wallet on Base: revenue vs expenses, net, tx count, top payers/payees, weekly breakdown. Your agent's books in one call. Input: wallet (+period 7d/30d/90d).",
|
|
2171
|
+
tags: [
|
|
2172
|
+
"agent-ledger",
|
|
2173
|
+
"x402-accounting",
|
|
2174
|
+
"usdc-bookkeeping",
|
|
2175
|
+
"revenue-expenses",
|
|
2176
|
+
"onchain-ledger"
|
|
2177
|
+
],
|
|
2178
|
+
inputSchema: {
|
|
2179
|
+
type: "object",
|
|
2180
|
+
properties: {
|
|
2181
|
+
wallet: {
|
|
2182
|
+
type: "string",
|
|
2183
|
+
description: "EVM wallet address (0x + 40 hex) to report on",
|
|
2184
|
+
pattern: "^0x[a-fA-F0-9]{40}$"
|
|
2185
|
+
},
|
|
2186
|
+
period: {
|
|
2187
|
+
type: "string",
|
|
2188
|
+
description: "Reporting window: 7d | 30d | 90d | all (default 30d)"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
required: [
|
|
2192
|
+
"wallet"
|
|
2193
|
+
]
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
tool: "proof_notarize",
|
|
2198
|
+
action: "X402_PROOF_NOTARIZE",
|
|
2199
|
+
path: "/proof/notarize",
|
|
2200
|
+
method: "GET",
|
|
2201
|
+
price: "$0.01",
|
|
2202
|
+
description: "Notarize a document or data hash for AI agents: submit a SHA-256 hash (or short content hashed server-side) and get a timestamped, Ed25519-signed proof-of-existence receipt, verifiable offline with no callback. Prove an artifact, agent output or decision existed at a point in time. Honest scope: this is a SIGNED proof-of-existence receipt, NOT a blockchain-anchored or eIDAS/RFC-3161 legal timestamp. The issuer never sees your content when you send only a hash. Price: $0.01 per call (x402 payment, USDC on Base mainnet). Notarize a SHA-256 hash (or short content hashed server-side) into a timestamped, Ed25519-signed proof-of-existence receipt, verifiable offline. Signed proof, NOT a blockchain-anchored or legal (eIDAS/RFC 3161) timestamp. Input: hash or content (+memo).",
|
|
2203
|
+
llm_usage_prompt: "Notarize a SHA-256 hash (or short content hashed server-side) into a timestamped, Ed25519-signed proof-of-existence receipt, verifiable offline. Signed proof, NOT a blockchain-anchored or legal (eIDAS/RFC 3161) timestamp. Input: hash or content (+memo).",
|
|
2204
|
+
tags: [
|
|
2205
|
+
"notary",
|
|
2206
|
+
"proof-of-existence",
|
|
2207
|
+
"timestamp",
|
|
2208
|
+
"ed25519-signature",
|
|
2209
|
+
"hash-attestation"
|
|
2210
|
+
],
|
|
2211
|
+
inputSchema: {
|
|
2212
|
+
type: "object",
|
|
2213
|
+
properties: {
|
|
2214
|
+
hash: {
|
|
2215
|
+
type: "string",
|
|
2216
|
+
description: "SHA-256 hex digest (64 hex chars) to notarize",
|
|
2217
|
+
pattern: "^[0-9a-fA-F]{64}$"
|
|
2218
|
+
},
|
|
2219
|
+
content: {
|
|
2220
|
+
type: "string",
|
|
2221
|
+
description: "Alternative to hash: short content hashed server-side (SHA-256), max 100000 chars"
|
|
2222
|
+
},
|
|
2223
|
+
memo: {
|
|
2224
|
+
type: "string",
|
|
2225
|
+
description: "Optional label bound into the signed proof, e.g. 'invoice #42'"
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
tool: "crypto_token_dossier",
|
|
2232
|
+
action: "X402_CRYPTO_TOKEN_DOSSIER",
|
|
2233
|
+
path: "/crypto/token-dossier",
|
|
2234
|
+
method: "GET",
|
|
2235
|
+
price: "$0.10",
|
|
2236
|
+
description: "Full degen token dossier in one call: safety score + honeypot/tax + detailed TOP HOLDERS and concentration + liquidity/FDV/volume/pool-age + contract control (owner, creator, mintable, open-source) + an AI red-flag narrative. Deep due-diligence report on a token before aping \u2014 the premium tier above a plain safety check. EVM chains and Solana. Price: $0.10 per call (x402 payment, USDC on Base mainnet). Full token dossier: safety score + top holders + concentration + liquidity/FDV/pool-age + contract control (owner/creator/mintable) + AI red-flag narrative. Premium tier above a plain safety check. EVM + Solana. Input: token (+chain).",
|
|
2237
|
+
llm_usage_prompt: "Full token dossier: safety score + top holders + concentration + liquidity/FDV/pool-age + contract control (owner/creator/mintable) + AI red-flag narrative. Premium tier above a plain safety check. EVM + Solana. Input: token (+chain).",
|
|
2238
|
+
tags: [
|
|
2239
|
+
"token-dossier",
|
|
2240
|
+
"holders",
|
|
2241
|
+
"liquidity",
|
|
2242
|
+
"rug-check",
|
|
2243
|
+
"red-flags"
|
|
2244
|
+
],
|
|
2245
|
+
inputSchema: {
|
|
2246
|
+
type: "object",
|
|
2247
|
+
properties: {
|
|
2248
|
+
token: {
|
|
2249
|
+
type: "string",
|
|
2250
|
+
description: "Token contract (EVM 0x+40hex) or SPL mint (base58)"
|
|
2251
|
+
},
|
|
2252
|
+
chain: {
|
|
2253
|
+
type: "string",
|
|
2254
|
+
description: "base | ethereum | bsc | polygon | arbitrum | optimism | avalanche | solana (default base)"
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
required: [
|
|
2258
|
+
"token"
|
|
2259
|
+
]
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
tool: "market_intel",
|
|
2264
|
+
action: "X402_MARKET_INTEL",
|
|
2265
|
+
path: "/market/intel",
|
|
2266
|
+
method: "GET",
|
|
2267
|
+
price: "$0.10",
|
|
2268
|
+
description: "AI market intelligence report in one call for research and trading agents: cross-exchange perp derivatives (funding, open interest, long/short), fused directional signals and the euro-area macro snapshot (ECB inflation, policy rates, unemployment, EUR FX) synthesized into a headline, crypto and macro outlook, key signals, risks and opportunities. Multi-source market research report with a crypto + macro/EU lens. Price: $0.10 per call (x402 payment, USDC on Base mainnet). AI market intelligence report: cross-exchange perp derivatives (funding/OI/long-short) + fused directional signals + euro-area ECB macro (inflation, rates, unemployment, FX) synthesized into headline, crypto and macro outlook, key signals, risks, opportunities. Input: focus (crypto/macro/all), depth.",
|
|
2269
|
+
llm_usage_prompt: "AI market intelligence report: cross-exchange perp derivatives (funding/OI/long-short) + fused directional signals + euro-area ECB macro (inflation, rates, unemployment, FX) synthesized into headline, crypto and macro outlook, key signals, risks, opportunities. Input: focus (crypto/macro/all), depth.",
|
|
2270
|
+
tags: [
|
|
2271
|
+
"market-intelligence",
|
|
2272
|
+
"crypto-market-report",
|
|
2273
|
+
"macro",
|
|
2274
|
+
"derivatives",
|
|
2275
|
+
"research"
|
|
2276
|
+
],
|
|
2277
|
+
inputSchema: {
|
|
2278
|
+
type: "object",
|
|
2279
|
+
properties: {
|
|
2280
|
+
focus: {
|
|
2281
|
+
type: "string",
|
|
2282
|
+
description: "crypto | macro | all (default all)"
|
|
2283
|
+
},
|
|
2284
|
+
depth: {
|
|
2285
|
+
type: "string",
|
|
2286
|
+
description: "quick | deep \u2014 deep adds SOL and more web signals (default quick)"
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
tool: "crypto_wallet_forensics",
|
|
2293
|
+
action: "X402_CRYPTO_WALLET_FORENSICS",
|
|
2294
|
+
path: "/crypto/wallet-forensics",
|
|
2295
|
+
method: "GET",
|
|
2296
|
+
price: "$0.15",
|
|
2297
|
+
description: "Multi-hop wallet forensics for AI agents: traverse an address's ERC-20 counterparty graph across 1-3 hops and get the flow graph (nodes + edges), ranked counterparties (direction, tokens, activity) and detected patterns \u2014 flow concentration, circular flows, linked/clustered wallets and high-degree hubs (exchange/mixer/deployer) \u2014 plus a signed receipt. Trace where funds move and who is connected. EVM chains. Price: $0.15 per call (x402 payment, USDC on Base mainnet). Multi-hop wallet forensics: ERC-20 counterparty flow graph (1-3 hops), ranked counterparties, pattern detection (flow concentration, circular flows, linked wallets, high-degree hubs) + signed receipt. Input: wallet (+depth 1-3, chain).",
|
|
2298
|
+
llm_usage_prompt: "Multi-hop wallet forensics: ERC-20 counterparty flow graph (1-3 hops), ranked counterparties, pattern detection (flow concentration, circular flows, linked wallets, high-degree hubs) + signed receipt. Input: wallet (+depth 1-3, chain).",
|
|
2299
|
+
tags: [
|
|
2300
|
+
"wallet-forensics",
|
|
2301
|
+
"flow-graph",
|
|
2302
|
+
"counterparties",
|
|
2303
|
+
"multi-hop",
|
|
2304
|
+
"pattern-detection"
|
|
2305
|
+
],
|
|
2306
|
+
inputSchema: {
|
|
2307
|
+
type: "object",
|
|
2308
|
+
properties: {
|
|
2309
|
+
wallet: {
|
|
2310
|
+
type: "string",
|
|
2311
|
+
description: "EVM wallet address (0x + 40 hex) to investigate",
|
|
2312
|
+
pattern: "^0x[a-fA-F0-9]{40}$"
|
|
2313
|
+
},
|
|
2314
|
+
depth: {
|
|
2315
|
+
type: "integer",
|
|
2316
|
+
description: "Graph hops to traverse: 1, 2 or 3 (default 2)"
|
|
2317
|
+
},
|
|
2318
|
+
chain: {
|
|
2319
|
+
type: "string",
|
|
2320
|
+
description: "base | ethereum | optimism | polygon | arbitrum | gnosis (default base)"
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
required: [
|
|
2324
|
+
"wallet"
|
|
2325
|
+
]
|
|
2326
|
+
}
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
tool: "chain_events",
|
|
2330
|
+
action: "X402_CHAIN_EVENTS",
|
|
2331
|
+
path: "/chain/events",
|
|
2332
|
+
method: "GET",
|
|
2333
|
+
price: "$0.05",
|
|
2334
|
+
description: "On-demand, decoded on-chain events for AI agents: query a contract's event logs on Base (eth_getLogs) and get normalized, human-readable events \u2014 Transfer, Approval, ERC-1155 TransferSingle/Batch, Uniswap V2/V3 Swap, Sync, Mint, Burn \u2014 with raw topics for unknown signatures. Filter by event name, full signature or topic0, and by block range or lookback. Decoded event feed with no RPC setup, block span capped. Price: $0.05 per call (x402 payment, USDC on Base mainnet). Decoded, normalized on-chain events via eth_getLogs on Base: Transfer, Approval, ERC-1155 TransferSingle/Batch, Uniswap V2/V3 Swap, Sync, Mint, Burn \u2014 raw topics for unknown signatures. Filter by event name/signature/topic0 and block range. Input: contract (+event, block range/lookback).",
|
|
2335
|
+
llm_usage_prompt: "Decoded, normalized on-chain events via eth_getLogs on Base: Transfer, Approval, ERC-1155 TransferSingle/Batch, Uniswap V2/V3 Swap, Sync, Mint, Burn \u2014 raw topics for unknown signatures. Filter by event name/signature/topic0 and block range. Input: contract (+event, block range/lookback).",
|
|
2336
|
+
tags: [
|
|
2337
|
+
"onchain-events",
|
|
2338
|
+
"eth-getlogs",
|
|
2339
|
+
"event-logs",
|
|
2340
|
+
"decoded-events",
|
|
2341
|
+
"base"
|
|
2342
|
+
],
|
|
2343
|
+
inputSchema: {
|
|
2344
|
+
type: "object",
|
|
2345
|
+
properties: {
|
|
2346
|
+
contract: {
|
|
2347
|
+
type: "string",
|
|
2348
|
+
description: "Contract address to read logs from (0x + 40 hex)",
|
|
2349
|
+
pattern: "^0x[a-fA-F0-9]{40}$"
|
|
2350
|
+
},
|
|
2351
|
+
event: {
|
|
2352
|
+
type: "string",
|
|
2353
|
+
description: "Event name (Transfer/Approval/Swap/Mint/Burn/TransferSingle/Sync), full signature 'Transfer(address,address,uint256)', or 0x topic0. Omit for all."
|
|
2354
|
+
},
|
|
2355
|
+
from_block: {
|
|
2356
|
+
type: "integer",
|
|
2357
|
+
description: "Start block (inclusive). Omit to use lookback."
|
|
2358
|
+
},
|
|
2359
|
+
to_block: {
|
|
2360
|
+
type: "integer",
|
|
2361
|
+
description: "End block (inclusive). Omit for latest."
|
|
2362
|
+
},
|
|
2363
|
+
lookback: {
|
|
2364
|
+
type: "integer",
|
|
2365
|
+
description: "If from/to omitted, scan the last N blocks (1-5000, default 2000)"
|
|
2366
|
+
},
|
|
2367
|
+
limit: {
|
|
2368
|
+
type: "integer",
|
|
2369
|
+
description: "Max events (1-100, most recent in range)"
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
required: [
|
|
2373
|
+
"contract"
|
|
2374
|
+
]
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
tool: "x402_seller_audit",
|
|
2379
|
+
action: "X402_X402_SELLER_AUDIT",
|
|
2380
|
+
path: "/x402/seller-audit",
|
|
2381
|
+
method: "GET",
|
|
2382
|
+
price: "$0.50",
|
|
2383
|
+
description: "Deep audit of an x402/ACP seller before trusting it: give a seller wallet or domain and get a full report \u2014 on-chain settlement reputation (settlements, unique counterparties, wash-trade/sybil, OFAC), the seller's advertised endpoints (from its /.well-known/x402.json), on-chain liveness, web reputation and red flags \u2014 fused into a TRUSTED/CAUTION/AVOID verdict with a signed, offline-verifiable receipt. Deeper than a pass/fail badge: the full seller due-diligence dossier for agentic payments. Price: $0.50 per call (x402 payment, USDC on Base mainnet). Deep x402 seller audit: on-chain settlement reputation (wash-trade/sybil/OFAC) + advertised endpoints from its /.well-known/x402.json + on-chain liveness + web reputation fused into TRUSTED/CAUTION/AVOID with a signed receipt. Deeper than a pass/fail badge. Input: seller wallet or domain.",
|
|
2384
|
+
llm_usage_prompt: "Deep x402 seller audit: on-chain settlement reputation (wash-trade/sybil/OFAC) + advertised endpoints from its /.well-known/x402.json + on-chain liveness + web reputation fused into TRUSTED/CAUTION/AVOID with a signed receipt. Deeper than a pass/fail badge. Input: seller wallet or domain.",
|
|
2385
|
+
tags: [
|
|
2386
|
+
"x402-seller-audit",
|
|
2387
|
+
"seller-reputation",
|
|
2388
|
+
"endpoint-audit",
|
|
2389
|
+
"due-diligence",
|
|
2390
|
+
"counterparty-risk"
|
|
2391
|
+
],
|
|
2392
|
+
inputSchema: {
|
|
2393
|
+
type: "object",
|
|
2394
|
+
properties: {
|
|
2395
|
+
seller: {
|
|
2396
|
+
type: "string",
|
|
2397
|
+
description: "Seller wallet (0x + 40 hex) or domain, e.g. 'api.example.com'"
|
|
2398
|
+
},
|
|
2399
|
+
depth: {
|
|
2400
|
+
type: "string",
|
|
2401
|
+
description: "On-chain depth: 'shallow' (~200 settlements) or 'deep' (~500)"
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
required: [
|
|
2405
|
+
"seller"
|
|
2406
|
+
]
|
|
2407
|
+
}
|
|
2126
2408
|
}
|
|
2127
2409
|
]
|
|
2128
2410
|
};
|