Quickly get up and running with DSA platform

Interacting with DeFi shouldn't be hard. That's why this SDK exists.

To get started, install the DSA Connect package from npm:

npm install dsa-connect

For browsers, via jsDelivr CDN:

<script src=""></script>


To enable web3 calls via SDK, instantiate web3 library

// in browserif (window.ethereum) {  window.web3 = new Web3(window.ethereum)} else if (window.web3) {  window.web3 = new Web3(window.web3.currentProvider)} else {  window.web3 = new Web3(customProvider)}
// in nodejsconst Web3 = require('web3')const DSA = require('dsa-connect');const web3 = new Web3(new Web3.providers.HttpProvider(ETH_NODE_URL))

Now instantiate DSA with web3 instance.

// in browserconst dsa = new DSA(web3);const chainId = 1; // Mainnet chainId// in nodejsconst dsa = new DSA({    web3: web3,    mode: "node",    privateKey: PRIVATE_KEY  },    chainId);

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.