whisky-csl

Crates.iowhisky-csl
lib.rswhisky-csl
version
sourcesrc
created_at2025-04-06 17:26:47.914306+00
updated_at2025-04-17 07:09:13.550098+00
descriptionWrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs
homepage
repository
max_upload_size
id1623203
Cargo.toml error:TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
TW (twwu123)

documentation

README


Whisky Whisky - Cardano Rust SDK

Licence Test Publish Docs

Twitter/X Crates.io NPM


whisky

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-js - An point of output for wasm package for @meshsdk/core-csl.

With whisky, you can

  • Builder transaction with cardano-cli-like APIs, supporting serious DApps’ backend on the Rust codebase.
  • Handling transaction signing in Rust
  • Interacting with blockchain with provider services like Maestro and Blockfrost
  • Off-node evaluation on transaction execution units, and updating the transaction accordingly with TxPipe's uplc integrated.

Installation

Rust Library

cargo add whisky

JS / TS WASM Lib

# For nodejs package
yarn add @sidan-lab/whisky-js-nodejs
# For browser package
yarn add @sidan-lab/whisky-js-browser

Getting Started

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())
}

APIs

Please refer to the hosted documentation for the list of endpoints.

Alt

Commit count: 0

cargo fmt