βοΈ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-sdkyarn
yarn add @orbiter-finance/bridge-sdkpnpm
pnpm add @orbiter-finance/bridge-sdk
Feel free to report if you encounter any problems.
πΎ Quick Start
- 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 User Opoints and Transaction History
π‘Tips:
For structure of result on these two function, please check Orbiter REST API.
Last updated
Was this helpful?