@swing.xyz/cross-chain-api
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Swing Cross-Chain API

Getting Started

yarn add @swing.xyz/cross-chain-api

Usage

import { getSwingAPI } from "@swing.xyz/cross-chain-api";

const swingAPI = getSwingAPI({
  /**
   * Optionally configure the Swing API environment
   * environment: "production",
   *
   * Optionally override the Swing API URL
   * baseUrl: "https://swap.prod.swing.xyz",
   *
   * Optional add default headers
   * headers: {},
   */
});

const config = await swingAPI.GET("/v0/transfer/config");

Readme

Keywords

none

Package Sidebar

Install

npm i @swing.xyz/cross-chain-api

Weekly Downloads

211

Version

0.2.0

License

GPL-3.0-or-later

Unpacked Size

71 kB

Total Files

6

Last publish

Collaborators

  • swing_gabriel
  • swing_chuqiao
  • lottamus