@de1/de1-sdk
v0.1.2
Published
De1 SDK
Readme
@de1/de1-sdk
De1 SDK is a multi-chain trading and swap SDK for building DeFi applications on De1.
It provides a unified interface for token swaps, quotes, approvals, and balance queries across EVM and non-EVM networks — including Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Avalanche, Solana, and more.
Designed to work alongside @de1/wallet, the SDK handles wallet connection, chain switching, and transaction submission so you can focus on product experience.
Features
- Multi-chain swaps — Quote and execute swaps across supported networks
- Wallet integration — Connect and interact with wallets via
@de1/wallet - Token utilities — Approvals, allowances, and balance queries
- Trade primitives — Token, pair, route, and trade entities for DEX-style workflows
Install
npm install @de1/de1-sdkQuick start
import { De1Sdk } from '@de1/de1-sdk'
const sdk = new De1Sdk({ apiUrl: 'https://your-api-endpoint' })
// Access swap, wallet helpers, and utilities
const { swapSdk, api, utils, web3 } = sdkLicense
ISC
