PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/abstract-utxo/dist/src/transaction

Просмотр файла: recipient.d.ts

import * as utxolib from '@bitgo/utxo-lib';
/**
 * Check if the address is a script recipient (starts with `scriptPubKey:`).
 * @param address
 */
export declare function isScriptRecipient(address: string): boolean;
/**
 * An extended address is one that encodes either a regular address or a hex encoded script with the prefix `scriptPubKey:`.
 * This function converts the extended address format to either a script or an address.
 * @param extendedAddress
 */
export declare function fromExtendedAddressFormat(extendedAddress: string): {
    address: string;
} | {
    script: string;
};
export declare function fromExtendedAddressFormatToScript(extendedAddress: string, network: utxolib.Network): Buffer;
/**
 * Convert a script or address to the extended address format.
 * @param script
 * @param network
 * @returns if the script is an OP_RETURN script, then it will be prefixed with `scriptPubKey:`, otherwise it will be converted to an address.
 */
export declare function toExtendedAddressFormat(script: Buffer, network: utxolib.Network): string;
export declare function assertValidTransactionRecipient(output: {
    amount: bigint | number | string;
    address?: string;
}): void;
//# sourceMappingURL=recipient.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!