Quickstart

Get up and running with Lixer SDK in under 5 minutes!

NPM Registry: @lixersdk/sdk


1. Install the SDK

npm install @lixersdk/sdk

or with Yarn:

yarn add @lixersdk/sdk

CDN (Browser):

<script src="https://unpkg.com/@lixer/sdk@latest/dist/lixer.min.js"></script>
<script>
  const lixer = new LixerSDK();
</script>

2. Initialize the SDK

const LixerSDK = require('@lixersdk/sdk');

// No configuration needed
const lixer = new LixerSDK();

3. Fetch Swaps


4. Work with Pools


5. Get Stats


6. Query Timeseries


7. Check SDK Health


8. Use WebSockets (Real-time Events)

Or with event listeners (if supported):


9. Token Metadata


10. Block Data


Summary

With Lixer SDK, you can easily access:

  • Swaps

  • Pools

  • Stats

  • Timeseries

  • Health

  • WebSockets (real-time events)

  • Tokens

  • Blocks

Example:

https://github.com/Haxry/Lixer/blob/master/monorepo/src/api/dashboard.tsx

Last updated