Api Endpoint

BABA Labs PoolLens

One LP position at a pinned block: in range or not, token amounts and uncollected fees exactly as collect() would pay, with a reproducible eth_call proof. Base and HyperEVM.

Open interactive test console

Offering

Provider
x402.babacapital.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.babacapital.app/lens/v1/position
MIME type
application/json
First seen
2026-11-13T17:02:17.561Z
Last seen
Tags
DeFi, Liquidity, Base, hyperevm, proofs

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x6C831dc0abc1aAbd9491969f72832C949b620D71"
  }
]

Observed health

Status
Healthy
Latest latency
493 ms
Average latency
435 ms
HTTP status
402
Last checked
Reachability
100% over 6 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "method"
  ],
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string",
          "enum": [
            "base",
            "hyperevm"
          ],
          "default": "base",
          "description": "Chain: base (Aerodrome) or hyperevm"
        },
        "npm": {
          "type": "string",
          "description": "Position manager (NFT) contract address; on base, 'aerodrome' is accepted and is the default; on hyperevm pass the address"
        },
        "tokenId": {
          "type": "string",
          "description": "Position NFT token id"
        }
      },
      "required": [
        "tokenId"
      ],
      "additionalProperties": false
    }
  }
}

Output schema

{
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "required": [
        "data",
        "proof"
      ],
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "OK",
                "NO_DATA",
                "NOT_SUPPORTED"
              ],
              "description": "NO_DATA means a read failed (reason names it); never returned as zero"
            },
            "reason": {
              "type": "string"
            },
            "venueKind": {
              "type": "string"
            },
            "npm": {
              "type": "string"
            },
            "tokenId": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "pool": {
              "type": "string"
            },
            "token0": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                }
              }
            },
            "token1": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                }
              }
            },
            "tickLower": {
              "type": "integer"
            },
            "tickUpper": {
              "type": "integer"
            },
            "tick": {
              "type": "integer"
            },
            "inRange": {
              "type": "boolean"
            },
            "staked": {
              "type": "boolean"
            },
            "raw": {
              "type": "object",
              "description": "liquidity, sqrtPriceX96, amount0/1 and fees0/1 in base units"
            },
            "human": {
              "type": "object",
              "description": "price, range bounds, % to each edge, amounts and uncollected fees exactly as collect() would pay, in token units"
            }
          },
          "required": [
            "status"
          ]
        },
        "proof": {
          "type": "object",
          "description": "Reproducible eth_call proof at a pinned block",
          "properties": {
            "chain": {
              "type": "string"
            },
            "chainId": {
              "type": "integer"
            },
            "blockNumber": {
              "type": "integer",
              "description": "the block the call actually executed at"
            },
            "requestedBlock": {
              "type": "integer"
            },
            "blockHonoured": {
              "type": "boolean",
              "description": "whether the RPC executed at the block requested"
            },
            "lens": {
              "type": "string",
              "description": "the open-source PoolLens contract called"
            },
            "reproduce": {
              "type": "object",
              "properties": {
                "method": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "data": {
                  "type": "string"
                },
                "block": {
                  "type": "string"
                }
              }
            },
            "source": {
              "type": "string"
            },
            "blockTimestamp": {
              "type": "integer"
            }
          },
          "required": [
            "chain",
            "chainId",
            "blockNumber",
            "blockHonoured",
            "reproduce"
          ]
        }
      }
    }
  }
}