MCPcopy
hub / github.com/BlueWallet/BlueWallet / CombinePSBTsParams

Interface CombinePSBTsParams

util/combinePSBTs.ts:9–12  ·  view source on GitHub ↗

* Combines two PSBTs and returns the combined PSBT. * @param {string} psbtBase64 - The base64 string of the first PSBT. * @param {string} newPSBTBase64 - The base64 string of the new PSBT to combine. * @returns {bitcoin.Psbt} - The combined PSBT.

Source from the content-addressed store, hash-verified

7 * @returns {bitcoin.Psbt} - The combined PSBT.
8 */
9interface CombinePSBTsParams {
10 psbtBase64: string;
11 newPSBTBase64: string;
12}
13
14export const combinePSBTs = ({ psbtBase64, newPSBTBase64 }: CombinePSBTsParams): bitcoin.Psbt => {
15 if (psbtBase64 === newPSBTBase64) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected