8 releases
Uses new Rust 2024
new 0.2.0 | Apr 7, 2025 |
---|---|
0.1.7 | Apr 7, 2025 |
#45 in Magic Beans
500 downloads per month
43KB
785 lines
Cardano Connector for CIP30 wallet
This library is meant to be used for web applications that need to interact with Cardano wallets. It provides a simple and easy-to-use interface for managing Cardano wallets and their associated data.
Features
- Connect to Cardano wallets
- Manage wallet addresses
- Retrieve wallet balance
- Send transactions
Usage
First list all the wallets available:
use cardano_connector::wallets;
for wallet in wallets() {
println!("Wallet: {} ({})", wallet.name(), wallet.version());
}
Only the wallets that are implementing the CIP30 standard and are enabled in the browser
will be listed. The wallets
function returns a vector of Wallet
instances.
This will gives you limited information about the wallet application. To access the wallet's
addresses, balance and create and send transactions, you need to enable the wallet, which
will return a ConnectedWallet
instance.
#
let connected_wallet = wallet.enable().await?;
Cardadno Connector
Rust web-wasm32* compatible implementation of Cardano CIP30.
* as in this is meant to run in a browser.
API | Status |
---|---|
name |
✅ |
version |
✅ |
icon |
✅ |
supported_extensions |
✅ |
enabled |
✅ |
enable |
✅ |
--- | --- |
getExtensions |
✅ |
getNetworkId |
✅ |
getUtxos |
✅ |
getChangeAddress |
✅ |
getBalance |
✅ |
getUsedAddresses |
✅ |
getUnusedAddresses |
✅ |
getRewardAddresses |
✅ |
signTx |
❓ |
submitTx |
❓ |
signData |
🚫 |
Dependencies
~3–6MB
~117K SLoC