# tezos-bundler

> Tezos Bundler Node

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

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-10-02 |
| First published | 2022-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jim Toth |
| Maintainers | jim-toth |

## Links

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

## Dependencies (9)

- [koa](https://npm.io/package/koa.md) ^2.13.4
- [knex](https://npm.io/package/knex.md) ^2.3.0
- [axios](https://npm.io/package/axios.md) ^0.27.2
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.2
- [raw-body](https://npm.io/package/raw-body.md) ^2.5.1
- [typescript](https://npm.io/package/typescript.md) ^4.8.3
- [@koa/router](https://npm.io/package/@koa/router.md) ^12.0.0
- [tezos-arbundles](https://npm.io/package/tezos-arbundles.md) ^1.0.7
- [@taquito/taquito](https://npm.io/package/@taquito/taquito.md) ^14.0.0

## Recent versions

- 1.0.2 (latest) — 2022-10-02
- 1.0.1 — 2022-10-01
- 1.0.0 — 2022-10-01

## README

# Art By City - Tezos Bundler

## Description
This project offers a REST API for accepting Tezos wallet keypair signed Arweve [ANS-104 Bundles](https://github.com/joshbenaron/arweave-standards/blob/ans104/ans/ANS-104.md).

## Requirements
- `node` `v16.13.2`

## Dev Requirements
- [ArLocal](https://github.com/textury/arlocal)
If developing locally, ensure the Arweave wallet passed to `TezosBundler` has an AR balance by calling `/mint/<address>/<amount>` on the arlocal API.

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

## Run Programmatically
```typescript
import Arweave from 'arweave'
import TezosBundler from 'tezos-bundler'

// Import your Arweave JWK keyfile
import arweaveJWK from './my-arweave-keyfile.json'

const arweave = new Arweave({ /* Arweave API Config */ })
const tezosBundler = new TezosBundler(arweaveJWK, arweave)
await tezosBundler.start()
```

Or with NuxtJS/NextJS/etc Server Middleware
```typescript
import Arweave from 'arweave'
import TezosBundler from 'tezos-bundler'

// Import your Arweave JWK keyfile
import arweaveJWK from './my-arweave-keyfile.json'

const arweave = new Arweave({ /* Arweave API Config */ })
const tezosBundler = new TezosBundler(testweaveJWK, arweave)
const callback = tezosBundler.app.callback()

export default callback
```

## Rest API
- `POST /bundle/xtz` Post an ANS-104 binary bundle to be posted to Arweave
  - Status `200`
  - Body
    ```
    {
      txid: 'arweave-tx-id',
      status: 200,
      statusText: 'OK'
    }
    ```

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