agentguard 0.1.0. Evaluate a Solana or EVM transaction against a supplied policy. This is a preview: it signs nothing and does not store what you send. It does not rehearse swaps, keep a running spending total or open reviews.
Policy-check and validation requests require a customer API key in the Authorization: Bearer header. Ask the service operator to provision a key. Keep application keys on your backend.
curl -s https://policy-api-production-55212b38.up.railway.app/v1/check -H 'content-type: application/json' -H 'Authorization: Bearer <API_KEY>' -d '{
"chain": "evm",
"transaction": { "chainId": 1, "from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222", "value": "1000000000000000000" },
"policy": { "policyId": "example", "programAllowlist": ["evm:native"], "allowedChainIds": [1],
"destinationAllowlist": ["0x2222222222222222222222222222222222222222"],
"maxAmountPerTransaction": { "native": "2000000000000000000" }, "maxAmountPerDay": { "native": "5000000000000000000" } }
}'
The answer has the decision, every reason, each instruction as it was read, and a receipt. Endpoints:
POST /v1/check, POST /v1/policies/validate, GET /v1/examples, and the full description at
/openapi.json.
Every result carries receipt.inputHash and receipt.resultHash, SHA-256 over canonical JSON. Run the same
input through the open-source code and compare:
git clone https://github.com/mjordan237/agentguard agentguard && cd agentguard git checkout <sourceCommit from GET /v1> npm ci && npm run build npm run check -- --json --policy policy.json --tx-file tx.b64 [--spent native=4800000000] [--lookup-tables tables.json]
This deployment does not report its commit; ask its operator which one it runs. Matching hashes show agreement for this input, not proof of the running software or deployment configuration. For a transaction that uses lookup tables,
save the response's lookupTables to tables.json first.
The key is sent only to this service in a request header. This page does not save it to browser storage.
The response appears here.