wallet-storage-client
Version:
Client only Wallet Storage
22 lines • 1.18 kB
TypeScript
import { Beef } from '@bsv/sdk';
import { sdk, StorageProvider } from '../../index.client';
/**
* Creates a `Beef` to support the validity of a transaction identified by its `txid`.
*
* `storage` is used to retrieve proven transactions and their merkle paths,
* or proven_tx_req record with beef of external inputs (internal inputs meged by recursion).
* Otherwise external services are used.
*
* `options.maxRecursionDepth` can be set to prevent overly deep chained dependencies. Will throw ERR_EXTSVS_ENVELOPE_DEPTH if exceeded.
*
* If `trustSelf` is true, a partial `Beef` will be returned where transactions known by `storage` to
* be valid by verified proof are represented solely by 'txid'.
*
* If `knownTxids` is defined, any 'txid' required by the `Beef` that appears in the array is represented solely as a 'known' txid.
*
* @param storage the chain on which txid exists.
* @param txid the transaction hash for which an envelope is requested.
* @param options
*/
export declare function getBeefForTransaction(storage: StorageProvider, txid: string, options: sdk.StorageGetBeefOptions): Promise<Beef>;
//# sourceMappingURL=getBeefForTransaction.d.ts.map