UNPKG

arweave-stream-tx

Version:

[![npm](https://img.shields.io/npm/v/arweave-stream-tx)](https://www.npmjs.com/package/arweave-stream-tx) [![tests](https://github.com/CDDelta/arweave-stream-tx/workflows/tests/badge.svg)](https://github.com/CDDelta/arweave-stream-tx/actions?query=workflo

10 lines (9 loc) 534 B
/// <reference types="node" /> import Arweave from 'arweave'; import { CreateTransactionInterface } from 'arweave/node/common'; import Transaction from 'arweave/node/lib/transaction'; import { JWKInterface } from 'arweave/node/lib/wallet'; /** * Creates an Arweave transaction from the piped data stream. */ export declare function createTransactionAsync(attributes: Partial<Omit<CreateTransactionInterface, 'data'>>, arweave: Arweave, jwk: JWKInterface | null | undefined): (source: AsyncIterable<Buffer>) => Promise<Transaction>;