npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentsentry/atsp

v1.0.0

Published

Agentic Transaction Security Protocol — open standard for AI agent on-chain governance

Downloads

17

Readme

Agentic Transaction Security Protocol (ATSP)

ATSP v1.0 Compliant License: MIT Discord npm

The open standard for how AI agents declare intent, validate context, and produce immutable decision traces before executing any on-chain transaction.

Published by AgentSentry · Houston, TX · Bayou City Blockchain


What Is ATSP?

ATSP (Agentic Transaction Security Protocol) defines a standard interface that any AI agent framework (elizaOS, Coinbase AgentKit, OpenAI Agents SDK) must implement before executing on-chain transactions.

The problem it solves: AI agents managing real capital (Solana treasuries, DeFi positions, DAO vaults) have no standard for declaring why they want to execute a transaction before they do it. Without this, a single LLM hallucination can drain a treasury in seconds.

ATSP is the fix. It forces agents to:

  1. Declare intent with a cryptographic hash before any on-chain action
  2. Pass through a security middleware (like AgentSentry) that validates the intent
  3. Produce an immutable decision trace that survives the transaction

Quick Install

Pre-release: npm package publishes with v1.0.0 GA. Install directly from GitHub until then:

npm install github:LCTXTECH/atsp

Once published (coming soon):

npm install @agentsentry/atsp
# or
pnpm add @agentsentry/atsp

Core Usage

import { createIntentDeclaration, validateDeclaration, ATSPVersion } from '@agentsentry/atsp'

// Step 1: Agent declares its intent BEFORE executing
const declaration = await createIntentDeclaration({
  agentId: 'eliza-agent-001',
  proposerPubKey: 'YOUR_PROPOSER_PUBLIC_KEY',
  action: 'SWAP',
  amount: 10.5,
  tokenMint: 'So11111111111111111111111111111111111111112',
  slippage: 1.5,
  reasoning: 'Rebalancing portfolio: SOL/USDC ratio exceeded 60% threshold',
  ipiCleared: true,
})

// Step 2: Validate the declaration
const result = validateDeclaration(declaration)
if (!result.valid) {
  throw new Error(`ATSP validation failed: ${result.errors.join(', ')}`)
}

// Step 3: Send to AgentSentry (or any ATSP-compliant middleware)
const verdict = await fetch('https://agentsentry.net/api/sentry/check-in', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' },
  body: JSON.stringify(declaration),
})

const { sentryVerdict } = await verdict.json()

// Step 4: Only execute if ALLOW
if (sentryVerdict === 'ALLOW') {
  // proceed with transaction
}

Core Interfaces

interface ATSPIntentDeclaration {
  version: '1.0'
  agentId: string           // NHI-scoped principal identifier
  proposerPubKey: string    // Squads V4 proposer key
  intentHash: string        // SHA-256 of (agentId + action + amount + tokenMint + timestamp)
  timestamp: number         // Unix ms — declarations expire after 60 seconds
  action: ATSPAction        // 'SWAP' | 'TRANSFER' | 'LP' | 'STAKE' | 'UNSTAKE' | 'VOTE'
  amount: number            // In native token units
  tokenMint: string         // Solana token mint address
  slippage?: number         // Max acceptable slippage %
  reasoning: string         // Human-readable agent reasoning (min 10 chars)
  ipiCleared: boolean       // Confirms IPI scan was performed on input context
  decisionTrace: {
    input: Record   // The raw data the agent acted on
    reasoning: string                // Step-by-step decision logic
    confidence: number               // 0.0 – 1.0
  }
  sentryVerdict?: ATSPVerdict        // Set by middleware after validation
  sentryLogId?: string               // Audit log reference
}

type ATSPVerdict = 'ALLOW' | 'BLOCK' | 'ESCALATE_TO_HUMAN'
type ATSPAction  = 'SWAP' | 'TRANSFER' | 'LP' | 'STAKE' | 'UNSTAKE' | 'VOTE'

ATSP Compliance Badge

Add this to your project's README to signal ATSP compliance:

[![ATSP v1.0 Compliant](https://img.shields.io/badge/ATSP-v1.0%20Compliant-00FF88?style=flat-square&labelColor=010408)](https://agentsentry.net/protocol/atsp)

CI

Key Concepts

| Concept | Definition | |---|---| | Agentic Slippage Event (ASE) | When an agent perceives a non-existent arbitrage opportunity and executes at catastrophic slippage | | Indirect Prompt Injection (IPI) | Adversarial data in agent input context that hijacks transaction decisions | | Hot-Wallet Parity | Dangerous state where agent has same permissions as a human multisig owner | | Runaway Agent Loop | Agent caught in logic loop executing hundreds of transactions before circuit trips | | Non-Human Identity (NHI) Scoping | Assigning unique, time-limited cryptographic identities to agents via Squads Proposer roles |


Links


License

MIT © 2026 AgentSentry / Bayou City Blockchain · Houston, TX