Skip to main content

Installation

Quick Start

Modules

ac.evm — Pre-transaction guard

Decision errors from guardAndExecute


ac.policies — Gateway policy management


ac.receipts — Receipt fetch and verification

Local verification (no network)

On-chain verification (trustless)

The SDK degrades gracefully: if the SignerAnchor RPC call fails, anchorState is 'unavailable' and the result falls back to local ECDSA verification. Never a silent pass.

ac.approvals — Approval queue management

For threshold configuration, auto-approve rules, and webhook setup, see Approval Queue.

@agentchain/core — Standalone Canonicalization

The @agentchain/core package ships independently and provides the deterministic primitives used by both the gateway and the SDK:
Use @agentchain/core in environments where you want receipt/policy verification without pulling in the full SDK (e.g., a smart contract relayer, a Rust-adjacent TypeScript service, or an audit script).

Standalone Codecs

The SDK also exports IPFS ↔ bytes32 codecs: