Installation
npm install --save @types/bip21
Summary
This package contains type definitions for bip21 (https://github.com/bitcoinjs/bip21).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bip21.
index.d.ts
type Options =
| {
amount?: number;
}
| { [key: string]: string };
declare namespace bip21 {
export function decode(uri: string, urnScheme?: string): { address: string; options: Options };
export function encode(address: string, options?: Options, urnScheme?: string): string;
}
export = bip21;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Stefan Huber.