@xchainjs/xchain-dash
Version:
Custom Dash client and utilities used by XChainJS clients
18 lines (17 loc) • 616 B
TypeScript
import { TxHash } from '@xchainjs/xchain-client';
import { NodeAuth } from './types';
/**
* Parameters for broadcasting a transaction.
*/
export type BroadcastTxParams = {
txHex: string;
nodeUrl: string;
auth?: NodeAuth;
};
/**
* Function to broadcast a transaction to the Dash network.
*
* @param {BroadcastTxParams} params Parameters for broadcasting the transaction.
* @returns {Promise<TxHash>} Promise that resolves with the transaction hash if successful, or rejects with an error message if unsuccessful.
*/
export declare const broadcastTx: (params: BroadcastTxParams) => Promise<TxHash>;