Skip to main content
The Zhentan server exposes a REST API used by the client and agent to manage the transaction lifecycle — from queueing and risk scoring to execution and portfolio data.

Base URL

EnvironmentURL
Localhttp://localhost:3001
ProductionSet via NEXT_PUBLIC_BACKEND_URL in the client

Authentication

The API is currently unauthenticated. It is designed to run locally alongside the client and agent. In production, CORS_ORIGIN restricts access to the configured origin.

Endpoints

MethodEndpointDescription
POST/queueQueue a transaction and get a risk verdict
POST/executeAgent co-signs and submits a UserOperation
GET/transactionsList pending transactions
GET/invoicesList pending invoices
POST/notify-resolveUpdate Telegram message with final outcome
GET/portfolioLive portfolio data via Zerion
GET/healthHealth check
Live API playground coming soon. You’ll be able to test endpoints directly from this page.