Browser Wallet SDK

To integrate the DCA API, you'll need to use the Limit Order SDK, which provides functionality for creating and canceling limit orders.

How to install the SDK in your project

How to use the SDK in your project

You can then use all the functions explored by the SDK (API and swapSDK).

Supported Provider Types

Type
Example
Description

Web3 provider

new Web3(window.ethereum)

Traditional MetaMask-style Web3.js

Ethers provider

new ethers.providers.Web3Provider(...) (v5) / new ethers.BrowserProvider(...) (v6)

Modern Ethers.js integration

Initialize Wallet Provider

Using Web3.js (web3-provider)

Pass the provider to the SDK like this:

Using Ethers.js (ethers-provider)

Ethers v5

Ethers v6 (Recommended)

Usage in SDK:

Create DCA Orders:

Cancel DCA Order

Demo

Last updated