This SDK is a JavaScript library for buying and selling on X2Y2, so you don't need to interact with the X2Y2 API and smart contracts directly.

If you just want to get information about open offers and orders on X2Y2, or fetch sales and other events, please use to the Open API.

Github Repository

https://github.com/X2Y2-io/x2y2-sdk

API Key

To get started on exploring the X2Y2 SDK, you would need to apply for an API key in the #request-api-key channel at our Developer Hub.

Install

Install with

yarn add @x2y2-io/sdk

or

npm install @x2y2-io/sdk --save

Rate Limits

All methods are limited to 2 req/sec per API key.