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

11 lines (10 loc) 496 B
/// <reference types="node" /> import Arweave from 'arweave'; import Transaction from 'arweave/node/lib/transaction'; /** * Uploads the piped data to the specified transaction. * * @param createTx whether or not the passed transaction should be created on the network. * This can be false if we want to reseed an existing transaction, */ export declare function uploadTransactionAsync(tx: Transaction, arweave: Arweave, createTx?: boolean): (source: AsyncIterable<Buffer>) => Promise<void>;