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 Chain API

The Chain API from X2Y2 — 4 operation(s) for chain.

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

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

This API exposes 4 operations across 4 paths. 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/.

4 operations 4 paths 0 schemas 1 GET3 POST

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 Chain 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 4

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

Chain 4
GET
/v3/chain/getUserCounter
Get user counter
chain-counter 1 param → 200
POST
/v3/tx/borrow
Get a loan
chain-borrow body → 200
POST
/v3/tx/repay
Repay a loan
chain-repay body → 200
POST
/v3/tx/refinance
Refinance a loan
chain-refinance body → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

x2y2-chain-api-openapi.yml Raw ↑

Other APIs X2Y2 publishes across the network.

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