armory-cli
v0.3.17
Published
Scaffold x402 payment-enabled apps
Downloads
466
Maintainers
Readme
armory-cli
Armory x402 SDK — CLI tool to scaffold payment-enabled apps, query networks/tokens, and verify endpoints.
Installation
bun add -g armory-cliWhy Armory?
Armory enables HTTP API payments via EIP-3009 transferWithAuthorization. Scaffold full payment servers and clients in seconds.
Commands
armory create <template> [name]
Scaffold a new x402 payment-enabled project.
Server Templates:
bun-server— Bun server with payment middlewareexpress-server— Express v5 serverhono-server— Hono server with extension supportelysia-server— Elysia/Bun servernext-server— Next.js middleware
Client Templates:
viem-client— Viem x402 clientethers-client— Ethers.js v6 clientweb3-client— Web3.js client
armory create bun-server my-api
armory create hono-server my-hono-api
armory create viem-client my-clientarmory networks
List supported blockchain networks.
armory networks # All networks
armory networks --mainnet # Mainnets only
armory networks --testnet # Testnets onlyarmory tokens [network]
List supported tokens.
armory tokens # All tokens
armory tokens base # Tokens on Base
armory tokens 8453 # By chain IDarmory validate <type> <value>
Validate a network or token identifier.
armory validate network base
armory validate network 8453
armory validate token usdc
armory validate token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913armory extensions
List available x402 protocol extensions.
armory extensions
armory extarmory verify <url>
Check x402 payment headers on an endpoint.
armory verify https://api.example.com/data
armory inspect https://api.example.com/dataSupported Networks
| Network | Chain ID | |---------|----------| | Ethereum | 1 | | Base | 8453 | | Base Sepolia | 84532 | | SKALE Base | 1187947933 | | SKALE Base Sepolia | 324705682 | | Ethereum Sepolia | 11155111 |
Supported Tokens
USDC, EURC, USDT, WBTC, WETH, SKL across supported networks.
License
MIT © Sawyer Cutler
