UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

14 lines (13 loc) 926 B
import { ChainGateClient, UtxoApi } from 'chaingate-client'; import { Address } from '../../../Address'; import { PrivateKeyProvider } from '../../CurrencyProviders'; import { TxVout, UtxoPreparedTransaction } from '../Utxo/UtxoPreparedTransaction'; import { CurrencyInfo } from '../../CurrencyInfo'; import { CurrencyAmount } from '../../CurrencyAmount'; import { NetworkParams } from '../Utxo/NetworkParams'; import { Txo } from '../Utxo/Txo'; export declare class LegacyUtxoPreparedTransaction<DefaultUnit extends string> extends UtxoPreparedTransaction<DefaultUnit> { constructor(api: UtxoApi, client: ChainGateClient, currencyInfo: CurrencyInfo, fromAddress: Address, toAddress: Address, amount: CurrencyAmount, networkParams: NetworkParams, privateKeyProvider: PrivateKeyProvider); protected toLegacyAddress(address: Address): string; protected sign(inputs: Txo[], outputs: TxVout[]): Promise<Uint8Array>; }