βš™οΈJS SDK

Orbiter SDK Document

This SDK is outdated. Please use the API to get a quote.

πŸŒ• Overview

  • The Orbiter SDK package provides a simplest, out-of-the-box approach to access the Orbiter API to find and execute the best on-chain and cross-chain swapping and bridging.

  • For more information about API, please see page: Orbiter REST API.

πŸ“¦ Installation

You can use following ways to get the latest version of Orbiter SDK.

  • npm

    npm install @orbiter-finance/bridge-sdk
  • yarn

    yarn add @orbiter-finance/bridge-sdk
  • pnpm

    pnpm add @orbiter-finance/bridge-sdk

Feel free to report if you encounter any problems.

πŸ‘Ύ Quick Start

  • Set up the SDK

  • Check Available TradePair

    πŸ’‘Tips:

    • For tradePairs that source chain is EVM type may have 2 kind of router, both EOA and CONTRACT.

    • For tradePairs that source chain is Starknet and TRON only has CONTRACT router.

    • For other tardePairs only has EAO router.

  • Create Router and Send Transaction

    From EVM Chains

    From BTC Chains

    From Tron Chains

    From Starknet Chains

    From Solana Chains

    πŸ’‘Tips:

    • The function [createTransfer] will return deferent type of transfer structure which depends on source chain type, for EVM it will be TransactionRequest, for BTC will be a PSBT for Starknet will be Call, etc. For more information please see their official document.

  • Check Bridge Status

  • Check User Opoints and Transaction History

    πŸ’‘Tips:

Last updated

Was this helpful?