chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
13 lines (12 loc) • 711 B
TypeScript
import { BitcoinCashApi } from 'chaingate-client';
import { Address } from '../../../Address';
import { Utxo } from '../../abstract/Utxo/Utxo';
import { CurrencyProviders } from '../../CurrencyProviders';
import { CurrencyAmount } from '../../CurrencyAmount';
import { BitcoinCashPreparedTransaction } from './BitcoinCashPreparedTransaction';
export declare class BitcoinCash extends Utxo<'bch'> {
currencyProviders: CurrencyProviders;
constructor(api: BitcoinCashApi, currencyProviders: CurrencyProviders);
getAddress(addressType?: 'legacy' | 'cashaddr' | 'bitpay'): Promise<string>;
createTransfer(toAddress: Address, amount: CurrencyAmount): Promise<BitcoinCashPreparedTransaction<'bch'>>;
}