@xchainjs/xchain-bitcoin
Version:
Custom Bitcoin client and utilities used by XChainJS clients
22 lines (21 loc) • 518 B
TypeScript
import { FeeRate, Network } from '@xchainjs/xchain-client';
import { Address } from '@xchainjs/xchain-util';
export type NormalTxParams = {
addressTo: Address;
amount: number;
feeRate: FeeRate;
};
export type VaultTxParams = NormalTxParams & {
memo: string;
};
export type GetChangeParams = {
valueOut: number;
sochainUrl: string;
network: Network;
address: Address;
};
export type ClientUrl = Record<Network, string>;
export declare enum AddressFormat {
P2WPKH = 0,
P2TR = 1
}