Expand description
§whisky
whisky
is built with the same pattern as MeshJS’s lower level APIs where Rust Cardano developer can import directly for use.
§Install
In your Rust project, run the below
cargo add whisky
or add the dependency in Cargo.toml
[dependencies]
whisky = "^<the-latest-version>"
§Getting Started
use whisky::*;
async fn my_first_whisky_tx(
recipient_address: &str,
my_address: &str,
inputs: &[UTxO],
) -> String {
let mut mesh = TxBuilder::new_core();
mesh.tx_out(
&recipient_address,
&[Asset::new_from_str("lovelace", "1000000")],
)
.change_address(my_address)
.select_utxos_from(inputs, 5000000)
.complete(None)
.await;
mesh.tx_hex()
}
§APIs
All user facing APIs are documentation at the builder interface.
Re-exports§
pub use builder::*;
pub use transaction::*;
Modules§
- algo
- blockfrost
- builder
- constants
- csl
- data
- derivation_
indices - errors
- interfaces
- maestro
- mnemonic
- models
- root_
key - services
- transaction
- tx_
builder - tx_
parser - utils
- wallet_
constants
Structs§
- Account
- Account
Info - Action
- Anchor
- Artist
- Asset
- Audio
Asset Metadata - Block
Info - Blockfrost
Provider - Budget
- Committee
Cold Resign - Committee
HotAuth - CoreCSL
- DRep
Deregistration - DRep
Registration - DRep
Update - Delegate
Stake - Deregister
Stake - Deserialized
Address - Eval
Error - File
- Fungible
Asset Metadata - Governance
Proposal Info - Image
Asset Metadata - Inline
Datum Source - Inline
Script Source - Inline
Simple Script Source - Json
Slot Config - Maestro
Provider - Metadata
- Mint
Parameter - Mnemonic
Wallet - Multi
Host Name - Output
- Plutus
Script Withdrawal - Pool
Metadata - Pool
Params - Protocol
- Provided
Datum Source - Provided
Script Source - Provided
Simple Script Source - PubKey
TxIn - PubKey
Withdrawal - Redeemer
- RefTxIn
- Register
Pool - Register
Stake - Retire
Pool - Root
KeyWallet - Royalties
Standard - Script
Certificate - Script
Mint - Script
TxIn - Script
TxIn Parameter - Script
Vote - Simple
Script Certificate - Simple
Script Mint - Simple
Script TxIn - Simple
Script Vote - Simple
Script Withdrawal - Single
Host Addr - Single
Host Name - Smart
Asset Metadata - Stake
AndVote Delegation - Stake
Registration AndDelegation - Stake
Vote Registration AndDelegation - Transaction
Info - TxBuilder
Body - TxIn
Parameter - TxParser
- UTxO
- Utxo
Input - Utxo
Output - Validity
Range - Value
- Video
Asset Metadata - Vote
Delegation - Vote
Registration AndDelegation - Vote
Type - Voting
Procedure - WError
- Wallet
- WhiskyCSL
Enums§
- Asset
Metadata - Builder
Data Type - Certificate
- Certificate
Type - Credential
- DRep
- Datum
- Datum
Source - Eval
Result - Language
Version - Mint
Item - Network
- NonFungible
Asset Metadata - Output
Script Source - Redeemer
Tag - Relay
- Script
Source - Simple
Script Source - Simple
Script TxIn Parameter - TxIn
- Vote
- Vote
Kind - Voter
- Wallet
Type - Withdrawal
Constants§
Traits§
Functions§
- apply_
double_ cbor_ encoding - apply_
params_ to_ plutus_ script - apply_
params_ to_ script - asset_
class - assoc_
map - bool
- build_
csl_ cost_ models - build_
tx_ builder - builtin_
byte_ string - byte_
string - bytes_
to_ hex - calculate_
tx_ hash - con_str
- con_
str0 - con_
str1 - con_
str2 - currency_
symbol - decrypt_
with_ cipher - deserialize_
address - encrypt_
with_ cipher - evaluate_
tx_ scripts - get_
cost_ mdls - get_
cost_ models_ from_ network - get_
mainnet_ cost_ models - get_
min_ utxo_ value - get_
native_ script_ hash - get_
preprod_ cost_ models - get_
preview_ cost_ models - get_
script_ hash - hex_
to_ bytes - hex_
to_ string - integer
- list
- map_
error_ to_ eval_ error - map_
eval_ result - map_
redeemer_ tag - map_
redeemer_ to_ action - maybe_
staking_ hash - output_
reference - pairs
- payment_
pub_ key_ hash - posix_
time - pub_
key_ address - pub_
key_ hash - script_
address - script_
hash_ to_ stake_ address - script_
to_ address - select_
utxos - sign_
transaction - string_
to_ hex - to_
bignum - to_
csl_ anchor - to_
csl_ cert - to_
csl_ drep - to_
csl_ redeemer - to_
csl_ script_ source - to_
csl_ simple_ script_ source - to_
csl_ vote_ kind - to_
csl_ voter - to_
pallas_ datum - to_
pallas_ multi_ asset_ value - to_
pallas_ script_ ref - to_
pallas_ utxos - to_
pallas_ value - to_
value - token_
name - tuple
- tx_
out_ ref