Crate whisky_js

Source
Expand description

#whisky-js

whisky-js composed of the core serialization logics with the pattern of json-to-transaction, compilable to wasm. This library is not expected to be imported by Rust developers directly, but rather through the higher level APIs like whisky. The wasm build and utility is mostly exposed in MeshJS.

§JS / TS wasm Install

In case you want the directly out of the box wasm function for your JS / TS project, run the below

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

§APIs

  • The serialization logic documentation at the builder interface.
  • The inline documentation of core json to transaction serialization function is served at here.

Modules§

address
aiken
script

Structs§

JsVecString
WasmDeserializedAddress
WasmResult

Functions§

js_calculate_tx_hash
js_evaluate_tx_scripts
js_get_required_inputs_to_resolve
js_get_tx_outs_utxo
js_parse_tx_body
js_serialize_tx_body
WASM Transaction building method
js_sign_transaction