Add submitpackage endpoint

This commit is contained in:
natsoni
2024-10-12 17:38:37 +09:00
parent 93d9538845
commit 9f0b3bd769
6 changed files with 45 additions and 3 deletions

View File

@@ -218,3 +218,21 @@ export interface TestMempoolAcceptResult {
},
['reject-reason']?: string,
}
export interface SubmitPackageResult {
package_msg: string;
"tx-results": { [wtxid: string]: TxResult };
"replaced-transactions"?: string[];
}
export interface TxResult {
txid: string;
"other-wtxid"?: string;
vsize?: number;
fees?: {
base: number;
"effective-feerate"?: number;
"effective-includes"?: string[];
};
error?: string;
}