Programmatic bridging SDK for Dymension's Hyperlane integration. Enables developers and automated systems to construct bridge transactions without relying on the portal frontend. The SDK helps to construct transactions for dispatching to Dymension, Kaspa, EVM chains or Solana but does not send or sign them.
EXPERIMENTAL: This SDK is in experimental release. Contributions are welcome.
.
├── sdk/ # The published SDK package for importing in your project
├── examples/ # Examples of importing and using the SDK
- SDK README - General usage info
- SDK Docs - Full SDK documentation and API reference
- Examples - Working examples for all supported routes
npm install @daniel.dymension.xyz/bridge-sdk| Source | Destination | Route Type | Status |
|---|---|---|---|
| Hub | Kaspa | Direct | ✅ (manually tested) |
| Kaspa | Hub | Direct | ✅ (manually tested) |
| Hub | EVM | Direct | |
| Hub | Solana | Direct | |
| Hub | IBC (inc rollapp) | Direct | |
| EVM | Hub | Direct | |
| Solana | Hub | Direct | |
| EVM | Hyperlane | Via Hub | |
| Solana | Hyperlane | Via Hub | |
| Kaspa | Hyperlane | Via Hub | |
| IBC | Hyperlane | Via Hub | |
| Rollapp | Hyperlane | Via Hub | |
| Rollapp | IBC | Via Hub |
Hyperlane chains: Ethereum, Base, BSC, Solana, Kaspa
import { createBridgeClient } from '@daniel.dymension.xyz/bridge-sdk';
// Create client - requires Hub REST URL for fee queries
const client = createBridgeClient({
restUrls: {
dymension: 'https://dymension-api.myserver.com',
},
});
// High-level transfer API
const result = await client.transfer({
from: 'dymension',
to: 'kaspa',
token: 'KAS',
amount: 5_000_000_000n, // 50 KAS
recipient: 'kaspa:qz...',
sender: 'dym1...',
});
// Sign result.tx with CosmJS and broadcast# Install dependencies
npm install
# Build SDK
npm run build
# Run tests
npm testMIT