# tezos-arbundles

> Tezos compatible wrapper for ArBundles

Latest version **1.0.7** (published 2022-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install tezos-arbundles
pnpm add tezos-arbundles
yarn add tezos-arbundles
bun add tezos-arbundles
```

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-10-02 |
| First published | 2022-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jim Toth |
| Maintainers | jim-toth |

## Links

- npm: https://www.npmjs.com/package/tezos-arbundles
- npm.io page: https://npm.io/package/tezos-arbundles

## Dependencies (5)

- [arbundles](https://npm.io/package/arbundles.md) ^0.6.21
- [@taquito/utils](https://npm.io/package/@taquito/utils.md) ^14.0.0
- [@taquito/signer](https://npm.io/package/@taquito/signer.md) ^14.0.0
- [@airgap/beacon-sdk](https://npm.io/package/@airgap/beacon-sdk.md) ^3.2.0
- [@taquito/beacon-wallet](https://npm.io/package/@taquito/beacon-wallet.md) ^14.0.0

## Recent versions

- 1.0.7 (latest) — 2022-10-02
- 1.0.6 — 2022-10-02
- 1.0.5 — 2022-09-28
- 1.0.4 — 2022-09-28
- 1.0.3 — 2022-09-25
- 1.0.2 — 2022-09-25
- 1.0.1 — 2022-09-25
- 1.0.0 — 2022-09-25

## README

# Art By City - Tezos Arbundles

This project is a wrapper library written in TypeScript to add Tezos support to [`arbundles`](https://github.com/Bundlr-Network/arbundles).

## Install
```bash
$ npm i --save @tezos-arbundles
```

## Usage
Create a `TezosSigner` & sign a `DataItem`
```typescript
import { bundleAndSignData, createData, TezosSigner } from 'tezos-arbundles'

// Create an ArBundles signer using Tezos secret key
const signer = new TezosSigner('<tezos secret key>')
await signer.setPublicKey()

// Create & sign a DataItem
const data: string | Uint8Array = 'Signed by a tezos wallet!'
const dataItem = createData(data, signer)
await dataItem.sign(signer)

// Add DataItem to a Bundle
const dataItems = [ dataItem ]
const bundle = await bundleAndSignData(dataItems, signer)

// POST to tezos-bundler
myFavoritePostMethod('/bundle/xtz', bundle.getRaw())
```

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