DSA Connect is the official SDK for JavaScript, available for browsers and Node.js backends. This guide covers multiple installation methods to get you started quickly.
Package Manager Installation
Install DSA Connect using your preferred package manager:
DSA Connect requires web3 version ^1.5.0 as a peer dependency. Make sure you have it installed:
CDN Installation
For browser-based projects, you can use the jsDelivr CDN:
<script src="https://cdn.jsdelivr.net/npm/dsa-connect@latest/dist/index.bundle.min.js"></script>
Using @latest will always fetch the most recent version. For production apps, pin to a specific version:<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.bundle.min.js"></script>
Verify Installation
After installation, verify that DSA Connect is properly installed:
ES6 Modules
CommonJS
Browser (CDN)
import DSA from 'dsa-connect';
console.log(DSA.version); // Outputs the SDK version
const DSA = require('dsa-connect');
console.log(DSA.version); // Outputs the SDK version
<script>
console.log(typeof DSA); // Should output "function"
</script>
System Requirements
Supported Networks: Ethereum Mainnet (1), Polygon (137), Arbitrum (42161), Avalanche (43114), Optimism (10), Fantom (250), Base (8453), Plasma (9745), BSC (56)
- Node.js 12.0 or higher (for Node.js environments)
- Web3.js ^1.5.0
- Modern browser with ES6 support (for browser environments)
Next Steps
Now that you have DSA Connect installed, proceed to the Quickstart guide to initialize the SDK and create your first DSA account.