Api Endpoint

BABA Labs PoolLens

Verified LP position state at a pinned block, with a reproducible eth_call proof.

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/positions
MIME type
application/json
First seen
2026-11-13T17:01:04.796Z
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
366 ms
Average latency
925 ms
HTTP status
402
Last checked
Reachability
100% over 5 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"
        },
        "owner": {
          "type": "string",
          "description": "Address whose unstaked positions are listed (staked positions are held by the gauge: query them by tokenId)"
        },
        "offset": {
          "type": "integer",
          "default": 0,
          "minimum": 0
        },
        "limit": {
          "type": "integer",
          "default": 20,
          "minimum": 1,
          "maximum": 20
        }
      },
      "required": [
        "owner"
      ],
      "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"
            },
            "owner": {
              "type": "string"
            },
            "npm": {
              "type": "string"
            },
            "total": {
              "type": "integer"
            },
            "offset": {
              "type": "integer"
            },
            "returned": {
              "type": "integer"
            },
            "outOfRange": {
              "type": "integer",
              "description": "how many of the returned positions are out of range"
            },
            "positions": {
              "type": "array",
              "items": {
                "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"
                ]
              }
            },
            "note": {
              "type": "string"
            }
          },
          "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"
          ]
        }
      }
    }
  }
}