bitcoinjs-lib
Version:
Client-side Bitcoin JavaScript library
10 lines (9 loc) • 364 B
TypeScript
import { Payment, PaymentOpts } from './index';
/**
* Embeds data in a Bitcoin payment.
* @param a - The payment object.
* @param opts - Optional payment options.
* @returns The modified payment object.
* @throws {TypeError} If there is not enough data or if the output is invalid.
*/
export declare function p2data(a: Payment, opts?: PaymentOpts): Payment;