0.4.0-beta • Published 11 days ago
@marlowe.io/wallet v0.4.0-beta
Description
This package provides wallet functionality for the rest of the SDK packages.
It has the following modules:
- @{@link api | marlowe.io/wallet/api}: provides an abstract interface to work with a wallet.
- @{@link browser | marlowe.io/wallet/browser}: provides a browser implementation of the api using the CIP30 specification.
- @{@link lucid | marlowe.io/wallet/lucid}: provides a implementation of the api that can work in the browser, node.js and deno using Lucid.
- @{@link index | marlowe.io/wallet}: Re-exports of the other modules.
Getting started
The @marlowe.io/wallet
package is released as an ESM module and can be used with a modern bundler or imported directly in the browser (without any bundler) as long as you use an import map.
Browser
<html>
<body>
<script src="https://cdn.jsdelivr.net/gh/input-output-hk/marlowe-ts-sdk@0.4.0-beta/jsdelivr-npm-importmap.js"></script>
<script type="module">
import { mkBrowserWallet, getInstalledWalletExtensions } from "@marlowe.io/wallet";
const installedWalletExtensions = getInstalledWalletExtensions();
console.log(`Available Browser Wallet Extensions: ${installedWalletExtensions}`);
const wallet = await mkBrowserWallet(installedWalletExtensions[0]);
</script>
</body>
</html>
Examples
There is a simple HTML file in the examples folder that shows how to use the wallet package to connect to a wallet extension and get basic info.
0.4.0-beta
11 days ago
0.4.0-beta-rc1
2 months ago
0.3.0-beta
4 months ago
0.3.0-beta-rc3
4 months ago
0.3.0-beta-rc2
4 months ago
0.3.0-beta-rc1
6 months ago
0.2.0-beta
6 months ago
0.2.0-alpha-22
6 months ago
0.2.0-alpha-20
6 months ago
0.2.0-alpha-19
7 months ago
0.2.0-alpha-18
7 months ago
0.2.0-alpha-17
7 months ago
0.2.0-alpha-16
7 months ago
0.2.0-alpha-14
7 months ago
0.2.0-alpha-13
7 months ago
0.2.0-alpha-5
8 months ago
0.2.0-alpha-4
8 months ago
0.2.0-alpha-3
8 months ago
0.2.0-alpha-2
8 months ago
0.2.0-alpha-1
8 months ago
0.2.0-alpha-0
8 months ago
0.1.3-beta
9 months ago
0.1.1-beta
9 months ago
0.1.0-beta
9 months ago