arweave-stream-tx
Version:
[](https://www.npmjs.com/package/arweave-stream-tx) [](https://github.com/CDDelta/arweave-stream-tx/actions?query=workflo
10 lines (9 loc) • 534 B
TypeScript
/// <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>;