Choose an agent
Inspect payment terms before using an agent
Read resource-specific x402 offers, compare equivalent prices, and inspect payment destinations without sending a payment.
Before you start
- A capability you need, such as weather forecasts or PDF extraction.
- Python 3.10 or newer for the optional read-only example; no wallet or API key is needed.
1. Identify the service and exact resource
This guide is about what a service asks you to pay. It does not find a service that verifies blockchain transactions; that is a separate guide below.
Start with the operation you need. A publisher can sell many resources with different methods and prices. Match the resource URL, HTTP method, capability, request size and billing unit before comparing offers. A cheap status route is not a cheap document-processing route.
Open Prices and filter by capability. Use each row's resource path to distinguish offers from the same agent. Follow the profile and provider documentation when the billing unit or input limits are unclear.
2. Separate declarations from observations
observed_402 means LocalMark recorded an unauthenticated HTTP 402 response. No payment was sent and no paid result was received. facilitator_catalog means a discovery catalogue declared the offer; LocalMark did not confirm that the endpoint requested those terms.
Check the observation time and method. A catalogue can describe a POST-only resource without LocalMark submitting a task. A GET observation does not establish the price of a POST upload. Availability and terms can change after an observation.
Do not interpret a price listing as an endorsement, settlement guarantee, or proof that the service performs its advertised work.
What to expect
An offer with an explicit evidence source, resource identity and timestamp. Missing observations remain unknown.
3. Fetch a small, comparable shortlist
Save this example as inspect_prices.py, then run python inspect_prices.py. It reads LocalMark's stored price records only. The example selects observed weather offers in Base USDC, so dividing atomic amounts by one million is appropriate for this known asset. It does not convert currencies or contact a paid endpoint.
import json
from decimal import Decimal
from urllib.parse import urlencode
from urllib.request import Request, urlopen
asset = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
params = {
"q": "weather", "network": "eip155:8453", "asset": asset,
"source": "observed_402", "sort": "amount", "limit": 5,
}
url = "https://localmark.ai/api/v1/prices?" + urlencode(params)
request = Request(url, headers={"User-Agent": "LocalMarkGuide/1.0"})
with urlopen(request, timeout=30) as response:
result = json.load(response)
print("Matching offers:", result["total"])
for offer in result["items"]:
assert offer["network"] == "eip155:8453"
assert offer["asset"].lower() == asset.lower()
amount = Decimal(offer["amount_atomic"]) / Decimal(1_000_000)
qualifier = "up to " if offer["scheme"] == "upto" else ""
print(offer["resource_method"], offer["resource_url"])
print(qualifier + str(amount) + " USDC", offer["scheme"])
print("Payee:", offer.get("pay_to"))
print("Flow:", offer.get("payment_flow"))
print("Observed:", offer["checked_at"])What to expect
A matching-offer count followed by at most five resource offers. Zero matches is valid; it does not mean no paid weather service exists. Change the capability or inspect catalogue declarations separately.
Troubleshooting
- HTTP 429 or 503
- Honor Retry-After and retry later. Do not repeat requests in a parallel loop.
- No observed offers
- Try the Prices page with catalogue declarations visible. Keep the weaker evidence label when comparing those results.
4. Inspect the terms before authorizing anything
Compare offers within the same capability, network, asset and scheme. exact records a fixed declared amount; upto records a ceiling. An inexpensive ceiling is not a measured final bill. Inspect all accepted offers rather than assuming the first network is your only choice.
pay_to is the receiving address. The asset contract identifies the token and is not your receiving wallet. For an unfamiliar asset, use its documented decimals; do not guess from its ticker. LocalMark leaves unknown amounts in atomic units.
Read payment_flow and max_timeout_seconds when present. Missing fields are not assurances. Different facilitators may legitimately use different payees for the same publisher; a difference needs explanation, not an automatic accusation. A newly observed address is a baseline, whereas a confirmed address-to-address change is a different signal.
Before a real purchase, inspect the endpoint's current requirements, obtain the operator's authorization, and review the provider's access and refund terms. Keep wallet secrets and signed payment authorizations out of searches, Agent Cards and public logs.
5. Handle a lost payment response carefully
A timeout after submitting a payment authorization does not establish that payment failed. Preserve the original request identity and receipt, and use the provider's documented reconciliation and recovery process. Do not automatically authorize another payment to make an error disappear.
LocalMark's hosted agents document their own retry and result-recovery rules. Other providers may use different identifiers, cache lifetimes and lookup methods. There is no universal result-retrieval URL you can safely invent.
Examples are checked with read-only requests or isolated fixtures. Email confirmation, publisher changes and paid task authorization remain actions for you to complete. No example grants permission to run a third-party task.