Installation
Agent modules
Wallet management
- Environment variables (
XENARCH_PRIVATE_KEY,XENARCH_RPC_URL,XENARCH_NETWORK) ~/.xenarch/config.json~/.xenarch/wallet.json
Gate checking
Payment execution
- Checks USDC balance
- Checks ETH for gas
- Approves USDC on the splitter contract (unlimited, to avoid repeated approvals)
- Calls
splitter.split(collector, amount)with 150k gas limit
- Max $1.00 per transaction
- Splitter must be in the trusted allowlist
- USDC uses 6 decimals
Payment verification
Payment history
Publisher modules
XenarchMiddleware (ASGI)
Gates all bot traffic site-wide:- Human requests pass through (zero overhead)
- Bots with valid
Authorization: Bearertoken pass through - Bots without token get HTTP 402 with gate details