Stellar Wallet Integration
Getting Started
To develop Stellar wallet functionality for Cactus Link, firstly install Cactus Link.
Once Cactus Link is installed, the wallet provider is accessible via the injected Stellar wallet interface in your dApp.
Provider Interaction
Cactus Link supports two interaction modes:
- Rabet: injects a variable into the page
- Freighter: communicates via API message events
Supported Methods
| Method | Description |
|---|---|
getAddress |
Get the current account's public key |
signTransaction |
Sign a Stellar transaction (XDR) |
signMessage |
Sign an arbitrary message |
getNetwork |
Get current network info |
signAuthEntry |
Sign a Soroban auth entry |
Note:
signMessage,getNetwork, andsignAuthEntryare not triggered by test dApps.getNetworkandsignAuthEntryare not supported by Rabet and Lobstr plugins.
Test dApp
You can test Stellar wallet integration using: https://testnet.blend.capital/