PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-bch/dist/src
Просмотр файла: bch.d.ts
import { AbstractUtxoCoin, UtxoNetwork } from '@bitgo/abstract-utxo';
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
export declare class Bch extends AbstractUtxoCoin {
protected constructor(bitgo: BitGoBase, network?: UtxoNetwork);
static createInstance(bitgo: BitGoBase): BaseCoin;
/**
* Canonicalize a Bitcoin Cash address for a specific version
*
* Starting on January 14th, 2018 Bitcoin Cash's bitcoin-abc node switched over to using cashaddr
* encoding for all of their addresses in order to distinguish them from Bitcoin Core's.
* https://www.bitcoinabc.org/cashaddr. We're sticking with the old base58 format because
* migrating over to the new format will be laborious, and we want to see how the space evolves
*
* @param address may or may not be prefixed with the network, example bitcoincash:pppkt7q2axpsm2cajyjtu6x8fsh6ywauzgxmsru962 or pppkt7q2axpsm2cajyjtu6x8fsh6ywauzgxmsru962
* @param version the version of the desired address, 'base58' or 'cashaddr', defaulting to 'base58'
* @returns {*} address string
*/
canonicalAddress(address: string, version?: unknown): string;
}
//# sourceMappingURL=bch.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!