Download Dragon Wallets SDK
Latest version: 1.0.0 | Released: May 19, 2025
Quick Start
npm install @dragonfire/wallet-sdk
Then import in your JavaScript/TypeScript files:
import { DragonWallet } from '@dragonfire/wallet-sdk';
const wallet = new DragonWallet({
apiKey: 'YOUR_API_KEY',
quantum: true
});
yarn add @dragonfire/wallet-sdk
Then import in your JavaScript/TypeScript files:
import { DragonWallet } from '@dragonfire/wallet-sdk';
const wallet = new DragonWallet({
apiKey: 'YOUR_API_KEY',
quantum: true
});
Include via CDN for quick prototyping:
<!-- Latest version -->
<script src="https://cdn.dragonfire.ai/sdk/wallet/latest/dragon-wallet.min.js"></script>
<!-- Specific version -->
<script src="https://cdn.dragonfire.ai/sdk/wallet/1.0.0/dragon-wallet.min.js"></script>
Usage:
<script>
const wallet = new DragonWallet.DragonWallet({
apiKey: 'YOUR_API_KEY',
quantum: true
});
</script>
Package Comparison
Feature | Full SDK | Widget Only | CDN Version |
---|---|---|---|
Core Wallet Functions | ✓ | ✓ | ✓ |
RWT Authentication | ✓ | ✓ | ✓ |
Quantum Signatures | ✓ | Basic | ✓ |
UI Components | ✓ | ✓ | ✓ |
Node.js Support | ✓ | ✗ | ✗ |
TypeScript Definitions | ✓ | ✗ | ✗ |
Size (minified) | 18 KB | 5 KB | 18 KB |
Integration Examples
React Component
npm install @dragonfire/wallet-sdk @dragonfire/wallet-react
import React from 'react';
import { DragonWalletProvider, useWallet } from '@dragonfire/wallet-react';
function App() {
return (
<DragonWalletProvider apiKey="YOUR_API_KEY">
<WalletComponent />
</DragonWalletProvider>
);
}
function WalletComponent() {
const { wallet, connect, balance } = useWallet();
return (
<div>
{!wallet ? (
<button onClick={connect}>Connect Wallet</button>
) : (
<div>
<p>Balance: {balance} DRGC</p>
</div>
)}
</div>
);
}
Vue.js Integration
npm install @dragonfire/wallet-sdk @dragonfire/wallet-vue
import { createApp } from 'vue';
import { DragonWalletPlugin } from '@dragonfire/wallet-vue';
const app = createApp(App);
app.use(DragonWalletPlugin, {
apiKey: 'YOUR_API_KEY'
});
app.mount('#app');
Angular Module
npm install @dragonfire/wallet-sdk @dragonfire/wallet-angular
import { NgModule } from '@angular/core';
import { DragonWalletModule } from '@dragonfire/wallet-angular';
@NgModule({
imports: [
DragonWalletModule.forRoot({
apiKey: 'YOUR_API_KEY'
})
]
})
export class AppModule { }
Version History
v1.0.0 May 19, 2025
- Initial public release
- Full RWT authentication support
- Quantum signature implementation
- Dragon Coin integration
- Widget component for easy integration
v0.9.0 May 1, 2025
- Beta release for testing
- Basic wallet operations
- Initial quantum bridge support
API Access Tiers
Dragon Node
$10/month
- Unlimited API calls
- Advanced quantum features
- Priority support
- Custom endpoints
Enterprise
Custom
- Dedicated infrastructure
- 24/7 support
- Custom integrations
- SLA guarantee