# @maze2/sezame-sdk

> The Sezame SDK library handling the crypto wallet interactions

Latest version **1.7.8** (published 2025-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maze2/sezame-sdk
pnpm add @maze2/sezame-sdk
yarn add @maze2/sezame-sdk
bun add @maze2/sezame-sdk
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.8 |
| Published | 2025-06-16 |
| First published | 2022-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 26 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 (+26 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maze2 |
| Maintainers | iabsis, obitwo, suqiasyan20aram |
| Keywords | crypto, bitcoin, wallet, typescript |

## Links

- npm: https://www.npmjs.com/package/@maze2/sezame-sdk
- Repository: https://github.com/maze2-org/sezame-sdk
- Homepage: https://iabsis.com
- Issues: https://github.com/maze2-org/sezame-sdk/issues
- npm.io page: https://npm.io/package/@maze2/sezame-sdk

## Dependencies (26)

- [web3](https://npm.io/package/web3.md) 1.5.2
- [axios](https://npm.io/package/axios.md) 0.21.1
- [bip32](https://npm.io/package/bip32.md) 2.0.6
- [bip39](https://npm.io/package/bip39.md) 3.0.4
- [hdkey](https://npm.io/package/hdkey.md) 2.0.1
- [assert](https://npm.io/package/assert.md) ^2.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [avn-api](https://npm.io/package/avn-api.md) 4.0.1
- [blakejs](https://npm.io/package/blakejs.md) ^1.2.1
- [bignumber](https://npm.io/package/bignumber.md) ^1.1.0
- [coinselect](https://npm.io/package/coinselect.md) 3.1.12
- [decimal.js](https://npm.io/package/decimal.js.md) 10.3.1
- [bitcore-lib](https://npm.io/package/bitcore-lib.md) 8.25.10
- [fetch-retry](https://npm.io/package/fetch-retry.md) ^5.0.6
- [bignumber.js](https://npm.io/package/bignumber.js.md) 9.0.1
- [bitcoinjs-lib](https://npm.io/package/bitcoinjs-lib.md) 5.2.0
- [@alephium/web3](https://npm.io/package/@alephium/web3.md) ^1.0.5
- [@polkadot/util](https://npm.io/package/@polkadot/util.md) 5.9.2
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) ^3.0.0
- [@polkadot/keyring](https://npm.io/package/@polkadot/keyring.md) 5.9.2
- [ethereumjs-wallet](https://npm.io/package/ethereumjs-wallet.md) 1.0.1
- [@alephium/web3-wallet](https://npm.io/package/@alephium/web3-wallet.md) ^1.0.5
- [@polkadot/util-crypto](https://npm.io/package/@polkadot/util-crypto.md) 5.9.2
- [@metamask/eth-sig-util](https://npm.io/package/@metamask/eth-sig-util.md) ^4.0.0
- [react-native-quick-crypto](https://npm.io/package/react-native-quick-crypto.md) ^0.6.1
- [bitcoin-address-validation](https://npm.io/package/bitcoin-address-validation.md) 2.2.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.7.8 (latest) — 2025-06-16
- 1.7.7 — 2025-03-06
- 1.7.6 — 2025-02-04
- 1.7.5 — 2025-01-17
- 1.7.4 — 2024-10-31
- 1.7.3 — 2024-08-22
- 1.7.2 — 2024-08-22
- 1.7.1 — 2024-08-22
- 1.7.0 — 2024-08-22
- 1.6.1 — 2024-02-07
- 1.6.0 — 2024-02-07
- 1.5.2 — 2023-10-27
- 1.5.1 — 2023-10-23
- 1.3.25 — 2023-10-23
- 1.5.0 — 2023-03-27
- … 23 more at https://npm.io/package/@maze2/sezame-sdk/versions

## README

# Sezame SDK
The Sezame sdk library handling the wallet interactions
## How to use the library

### Usage in your project
Import the library in your project with `yarn add @maze2/sezame-sdk`

### Create wallets

~~~ javascript
const sezameSdk = require("@maze2/sezame-sdk")

// Create a mnemonic
const mnemonic = sezameSdk.WalletGenerator.generateMnemonic(128);

// Create an eth wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "ETH", 0);
// Create an bsc wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "BSC", 0);
// Create an polygon wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "POLYGON", 0);
// Create an btc wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "BTC", 0);
// Create an avn wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "AVN", 0);
// Create an alephium wallet
sezameSdk.WalletGenerator.generateKeyPairFromMnemonic(mnemonic, "ALPH", 0);
~~~

### Make a transaction

```javascript
    // Transfer example with ethereum
    const ethDescriptor = {
        privKey: wallets.eth.privateKey,
        walletAddress: wallets.eth.address,
        chain: "ETH",
        symbol: "ETH",
    };
    const ethWallet = sezameSdk.WalletFactory.getWallet(ethDescriptor);

    const ethFees = await ethWallet.getTxSendProposals("0x53980dF62D3eCAdc564d9B929e2aeD8514180e8b", 0.01);
    const txEth = await ethWallet.postTxSend(ethFees.regular);
    console.log(txEth);

    // Transfer example avn
    process.env.SURI = wallets.avn.privateKey;
    const avnDescriptor = {
        privKey: wallets.avn.privateKey,
        walletAddress: wallets.avn.address,
        chain: "AVN",
        symbol: "AVN",
    };
    const avnWallet = sezameSdk.WalletFactory.getWallet(avnDescriptor);
    const avnFees = await avnWallet.getTxSendProposals("5FZ9egr9M1tGJ1aEUWG6TPkoko8j7cX2TwtchcFmaMWZzMVU", 1);
    const txAvn = await avnWallet.postAvnSend(avnFees.regular);
    console.log(txAvn);

    // Transfer example alph
    const alphDescriptor = {
        privKey: wallets.alph.privateKey,
        pubKey: wallets.alph.publicKey,
        walletAddress: wallets.alph.address,
        chain: "ALPH",
        symbol: "ALPH",
    };
    const alphWallet = sezameSdk.WalletFactory.getWallet(alphDescriptor);
    const alphFees = await alphWallet.getTxSendProposals("1C5axNMef3Xm4QJmK9VySHdEQ8enJcaPYWd3z1LgxyCY9", 1);
    const txAlph = await alphWallet.postTxSend(alphFees.regular);
    console.log(txAlph);

    // Retrieve avn adress balance
    const avnWallet = sezameSdk.WalletFactory.getWallet({
        privKey: wallets.avn.privateKey,
        walletAddress: wallets.avn.address,
        chain: "AVN",
        symbol: "AVN",
    });

    process.env.SURI = wallets.avn.privateKey;
    const avnBalance = await avnWallet.getBalance();
    console.log(avnBalance);

```

## Library Development setup
Run `yarn`. (Installs dependencies and links packages in the workspace.)

### Compilation
Create an `.env` file to configure the platform: `TESTNET=true|false`.  
The default value is `TESTNET=false`.

### Test
Jest tests are set up to run with `TESTNET=true yarn test`. 

# License

The Sezame sdk Library is licensed under the [MIT License](LICENSE).

---
_Source: https://npm.io/package/@maze2/sezame-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
