74trust / 100

Lor Evaluate

by Lending Rate Optimizer in Onchain & crypto

x402 APIPassing, checked 2 h ago

Discover what your assets could earn through lending—and where to find the strongest rates. Compare supported lending markets to find the best rates for the assets you hold and the amount you want to put to work.

POST
https://api.alphabuild.xyz/lor/v1/evaluate
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
1.3 s
2.1 s slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.alphabuild.xyz/lor/v1/evaluate

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://api.alphabuild.xyz/lor/v1/evaluate
content-type: application/json

{
  "amount": "1000",
  "asset": "USDC",
  "target_environment": {
    "chain_id": 8453,
    "kind": "evm_chain",
    "network_name": "base"
  }
}

Parameters

ParameterTypeRequiredDescription
amountstringYes
assetstringYes One of: USDC, WETH, cbBTC, EURC, USDT, USDS, WBTC, wstETH.
minimum_base_supply_apystringNoOptional Base gross protocol supply APY floor as a decimal fraction; 0.05 means 5%. Omission selects unconstrained comparison.
opportunity_idstringNoOptional approved opportunity identifier; requires protocol.
protocolstringNoOptional protocol filter. One of: aave-v3, morpho-blue, euler-evk, dolomite.
target_environmentobjectYes

Example response

The provider's example. We can't check it without paying.

Example response, 70 lines
{
  "coverage_version": "lor-base-usdc-coverage-v1",
  "evaluated_at": "2026-01-01T00:00:00.000Z",
  "evidence": [],
  "freshness": {
    "block_number": "1",
    "status": "fresh",
    "target_state": "pinned_base_block"
  },
  "payment": {
    "status": "settled",
    "x402_implemented": true
  },
  "request_id": "00000000-0000-4000-8000-000000000000",
  "result": {
    "constraint_mode": "NONE",
    "minimum_base_supply_apy": null,
    "opportunities": [
      {
        "binding_constraint": "NONE",
        "current_base_supply_apy": "0.04",
        "maximum_feasible_amount": "1000",
        "maximum_protocol_feasible_amount": "1000",
        "maximum_return_floor_amount": null,
        "modeled_apy_at_maximum_feasible_amount": "0.039",
        "modeled_post_allocation_apy": "0.039",
        "opportunity_id": "aave-v3-base-usdc",
        "protocol": "aave-v3",
        "protocol_state": {},
        "rank": 1,
        "verdict": "PROCEED"
      }
    ],
    "requested_amount": "1000",
    "selected_opportunity": {
      "binding_constraint": "NONE",
      "current_base_supply_apy": "0.04",
      "maximum_feasible_amount": "1000",
      "maximum_protocol_feasible_amount": "1000",
      "maximum_return_floor_amount": null,
      "modeled_apy_at_maximum_feasible_amount": "0.039",
      "modeled_post_allocation_apy": "0.039",
      "opportunity_id": "aave-v3-base-usdc",
      "protocol": "aave-v3",
      "protocol_state": {},
      "rank": 1,
      "verdict": "PROCEED"
    },
    "selection": {
      "candidate_count": 8,
      "evaluated_count": 8,
      "mode": "ALL_SUPPORTED",
      "ranking_completeness": "COMPLETE",
      "ranking_policy_version": "lor-ranking-v2",
      "selected_opportunity_id": "aave-v3-base-usdc",
      "selected_protocol": "aave-v3"
    }
  },
  "ruleset_version": "lor-ruleset-v1",
  "service": "lor",
  "service_version": "0.1.0",
  "target_context": {
    "block_number": "1",
    "chain_id": 8453,
    "kind": "evm_chain",
    "network_name": "base"
  },
  "verdict": "PROCEED",
  "warnings": []
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.alphabuild.xyz/lor/v1/evaluate' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":"1000","asset":"USDC","target_environment":{"chain_id":8453,"kind":"evm_chain","network_name":"base"}}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.alphabuild.xyz/lor/v1/evaluate' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":"1000","asset":"USDC","target_environment":{"chain_id":8453,"kind":"evm_chain","network_name":"base"}}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.alphabuild.xyz%2Flor%2Fv1%2Fevaluate&method=POST
const res = await pay("https://api.alphabuild.xyz/lor/v1/evaluate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "amount": "1000",
    "asset": "USDC",
    "target_environment": {
      "chain_id": 8453,
      "kind": "evm_chain",
      "network_name": "base"
    }
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://api.alphabuild.xyz/lor/v1/evaluate",
        json={
            "amount": "1000",
            "asset": "USDC",
            "target_environment": {
                "chain_id": 8453,
                "kind": "evm_chain",
                "network_name": "base",
            },
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402697 ms$0.01
7 h agoPassed4021.6 s$0.01
13 h agoPassed4021.5 s$0.01
18 h agoPassed4021.2 s$0.01
23 h agoPassed4021.2 s$0.01
Show 10 older checks
27 h agoPassed4021.6 s$0.01
32 h agoPassed4021.4 s$0.01
37 h agoPassed4021.3 s$0.01
42 h agoPassed4021.2 s$0.01
46 h agoPassed402678 ms$0.01
2 days agoPassed4021.8 s$0.01
2 days agoPassed4022.1 s$0.01
2 days agoPassed402723 ms$0.01
3 days agoPassed4021.6 s$0.01
3 days agoPassed402573 ms$0.01