v4

OpenAPI 3.0.02026-08-0370073.2 KB
Mesh Economics

Decide pricing for an incoming call (fresh vs cached)

Returns a CallDecision. No ledger events are written — caller must follow up with /commit.

post/economics/api/price

Request body

tool_idstring required
argsobject
walletstring required
referrer_walletstring
agent_idstring
api_key_hashstring
verify_onlyboolean

Example request

{
  "tool_id": "btc_overview",
  "args": {},
  "wallet": "0xabc..."
}

Response

Pricing decision returned