ERGO
Golden path

Build around one receipt first.

Start from one settled testnet receipt, not from the whole API catalog. Inspect the agreement, verification, settlement, wallet policy, MCP health, and mainnet gate before writing integration code.

Expected outcome
full receipt bundle

Understand the autonomous work clearing loop from one concrete receipt.

Network
testnet
Status
settled on chain
Policy
pre-sign
Mainnet
closed
One command probe

Use this as the first machine check. It returns the whole route, not just a marketing page.

curl -sS https://www.ergoblockchain.org/api/agent-economy/first-receipt

Path

Six checks, one mental model.

The point is to make a developer see the whole clearing loop once: proof state, receipt, policy, callable contract, MCP, and gate.

1 / GET

Check live status

live
Endpoint
https://www.ergoblockchain.org/api/agent-economy/live
curl -sS https://www.ergoblockchain.org/api/agent-economy/live
Expect
ok=true, summary.latest_full_receipt_id is present, mainnet_ready=false
2 / GET

Inspect receipt JSON

live
Endpoint
https://www.ergoblockchain.org/api/sage/receipt/f8752d10a2ece92fbc88065c3b92b94da621ec65943098f43c9e084deb763d81
curl -sS https://www.ergoblockchain.org/api/sage/receipt/f8752d10a2ece92fbc88065c3b92b94da621ec65943098f43c9e084deb763d81
Expect
completeness=full_receipt_bundle, status=settled_on_chain
3 / POST

Run wallet policy check

live
Endpoint
https://www.ergoblockchain.org/api/agent-economy/wallet-agent/policy-check
curl -sS -X POST https://www.ergoblockchain.org/api/agent-economy/wallet-agent/policy-check -H 'content-type: application/json' --data '{"profile":{"type":"ergo.agent_economy.wallet_agent_policy_profile.v0","version":"v0","agent_id":"local-sage-agent-demo","network":"testnet","daily_spend_cap":"0.250000000","per_action_spend_cap":"0.050000000","max_fee":"0.002000000","allowed_recipients":["testnet_recipient_address_or_payment_endpoint"],"allowed_reserves":["testnet_reserve_box_id_or_alias"],"allowed_actions":["quote","simulate","sign_specific_transaction","broadcast_simulated_transaction","verify_note","fetch_receipt"],"requires_human_confirmation_above":"0.010000000","expiry_height_limit":720,"receipt_retention":{"required":true,"mode":"local_plus_public_url"}},"proposed_action":{"network":"testnet","action":"sign_specific_transaction","amount":"0.005000000","spent_today":"0.000000000","fee":"0.001000000","recipient":"testnet_recipient_address_or_payment_endpoint","reserve":"testnet_reserve_box_id_or_alias","expiry_height_delta":120,"task_hash":"9c5e7a16f4e8c2d2a8b74a0d8c2e91aa","human_confirmed":false,"receipt_expected":true}}'
Expect
allowed=true for the safe testnet example; unsafe variants fail closed
4 / GET

Read callable contract

live
Endpoint
https://www.ergoblockchain.org/agent-economy/openapi.v0.json
curl -sS https://www.ergoblockchain.org/agent-economy/openapi.v0.json
Expect
OpenAPI 3.1 paths include discovery, proof, policy, Sage receipt, and mainnet gate APIs
5 / GET

Check MCP health

live
Endpoint
https://mcp.ergoblockchain.org/health
curl -sS https://mcp.ergoblockchain.org/health
Expect
ok=true before connecting an MCP client to /mcp
6 / GET

Read mainnet gate

closed by design
Endpoint
https://www.ergoblockchain.org/api/agent-economy/mainnet-gate
curl -sS https://www.ergoblockchain.org/api/agent-economy/mainnet-gate
Expect
mainnet_ready=false and pending blockers remain audit/script identity

Receipt object

The receipt is the demo.

A transaction hash says value moved. The receipt bundle says what was agreed, how it was verified, and how it settled.

Inspect JSON

Agreement JSON

Verification Receipt JSON

Settlement Receipt JSON

Ergo testnet Note box id

Ergo testnet settlement transaction id

task hash and quote evidence

Policy

The wallet says yes before the agent signs.

The safe example is allowed. Change the amount, recipient, reserve, network, expiry, task hash, or receipt expectation and it fails closed.

Example verdict
allowed

This policy endpoint never signs, broadcasts, stores private keys, or grants wallet authority.

Stop condition

The first receipt flow proves testnet clearing. It does not open mainnet claims.

Mainnet/payment-production language stays closed until external review and audit-bound script identity are published.

Read gate