opnet
Version:
The perfect library for building Bitcoin-based applications.
20 lines (16 loc) • 475 B
text/typescript
export interface BroadcastedTransaction {
/** Whether the transaction was successfully broadcasted. */
readonly success: boolean;
/**
* The result of the broadcasted transaction.
*/
readonly result?: string;
/**
* The error message if the transaction was not successfully broadcasted.
*/
readonly error?: string;
/**
* The number of peers that the transaction was broadcasted to.
*/
readonly peers?: number;
}