Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

X2Y2 Contracts API

The Contracts API from X2Y2 — 2 operation(s) for contracts.

X2Y2 Contracts API is one of 8 APIs that X2Y2 publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Contracts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and rate-limit docs.

This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 3.0.

Requests are made against 2 base URLs: https://loan-api.x2y2.org/, https://goerli-loan-api.x2y2.org/.

2 operations 2 paths 4 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0
Base URL
https://api.x2y2.org
Authentication
API Key
Resource Areas
1

Authentication & Security 1

X2Y2 Contracts API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-KEY (sec0). By default, every request must be authenticated.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Contracts 2
GET
/v1/contracts/{contract}
Fetch contract
get-v1-contracts-contract 1 param → 200
GET
/v1/contracts/{contract}/stats
Fetch contract stats
get-v1-contracts-contract-stats 1 param → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are ContractV1 (9 properties), OpenAPIContractResponse (3 properties), ContractStatsResponse (3 properties), ContractStats (1 property). Each schema is shown below with its type and property counts.

ContractV1
object
9 properties
ContractStatsResponse
object
3 properties 1 required
OpenAPIContractResponse
object
3 properties 1 required
ContractStats
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

x2y2-contracts-api-openapi.yml Raw ↑

Other APIs X2Y2 publishes across the network.

X2Y2 Chain API
X2Y2 Events API
X2Y2 General API
X2Y2 Loan API
X2Y2 Offer API
X2Y2 Offers API
X2Y2 Orders API