| Crates.io | whisky-macros |
| lib.rs | whisky-macros |
| version | 1.0.10 |
| created_at | 2025-06-30 13:20:56.520958+00 |
| updated_at | 2025-08-07 16:55:58.466501+00 |
| description | The Cardano Rust SDK, inspired by MeshJS |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1731842 |
| size | 10,110 |
Whisky is an open-source Cardano Rust SDK, containing following modules:
whisky - The core Rust crate supporting Cardano DApp development in Rust.whisky-common - Serving universal types and utilities.whisky-csl - The crate to implement most cardano-serialization-lib wrapper.whisky-provider - The crate to connect external services like blockfrost or maestro.whisky-wallet - The crate to handle wallet signing and provide key encryption utility.whisky-macros - The crate to provide Rust macros utility.whisky-js - An point of output for wasm package for @meshsdk/core-csl.With whisky, you can
Maestro and Blockfrostuplc integrated.cargo add whisky
# For nodejs package
yarn add @sidan-lab/whisky-js-nodejs
# For browser package
yarn add @sidan-lab/whisky-js-browser
use whisky::*;
pub fn send_lovelace(
recipient_address: &str,
my_address: &str,
inputs: &[UTxO],
) -> Result<String, WError> {
let mut tx_builder = TxBuilder::new_core();
tx_builder
.tx_out(
recipient_address,
&[Asset::new_from_str("lovelace", "1000000")],
)
.change_address(my_address)
.select_utxos_from(inputs, 5000000)
.complete_sync(None)?;
Ok(tx_builder.tx_hex())
}
Make sure llvm is installed
Please refer to the hosted documentation for the list of endpoints.