* 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.
| 7 | * @returns {bitcoin.Psbt} - The combined PSBT. |
| 8 | */ |
| 9 | interface CombinePSBTsParams { |
| 10 | psbtBase64: string; |
| 11 | newPSBTBase64: string; |
| 12 | } |
| 13 | |
| 14 | export const combinePSBTs = ({ psbtBase64, newPSBTBase64 }: CombinePSBTsParams): bitcoin.Psbt => { |
| 15 | if (psbtBase64 === newPSBTBase64) { |
nothing calls this directly
no outgoing calls
no test coverage detected