Skip to content

Commit 460c52b

Browse files
bandrivskiygofman8
authored andcommitted
add send_btc_begin/send_btc_end exports
1 parent 9ee956d commit 460c52b

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

‎template/wrapper.js‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,47 @@ exports.Wallet = class Wallet {
837837
);
838838
}
839839

840+
sendBtcBegin(online, address, amount, feeRate, skipSync) {
841+
const params = {
842+
online,
843+
address,
844+
amount,
845+
feeRate,
846+
skipSync,
847+
};
848+
const expectedTypes = {
849+
online: "object",
850+
address: "string",
851+
amount: "u64",
852+
feeRate: "u64",
853+
skipSync: "boolean",
854+
};
855+
validateTypes(params, expectedTypes);
856+
return lib.rgblib_send_btc_begin(
857+
this.wallet,
858+
online,
859+
address,
860+
amount,
861+
feeRate,
862+
skipSync,
863+
);
864+
}
865+
866+
sendBtcEnd(online, signedPsbt, skipSync) {
867+
const params = {
868+
online,
869+
signedPsbt,
870+
skipSync,
871+
};
872+
const expectedTypes = {
873+
online: "object",
874+
signedPsbt: "string",
875+
skipSync: "boolean",
876+
};
877+
validateTypes(params, expectedTypes);
878+
return lib.rgblib_send_btc_end(this.wallet, online, signedPsbt, skipSync);
879+
}
880+
840881
sendEnd(online, signedPsbt, skipSync) {
841882
const params = {
842883
online,

0 commit comments

Comments
 (0)