We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59cfc0a commit 2a5ab1aCopy full SHA for 2a5ab1a
1 file changed
modules/abstract-utxo/src/transaction/decode.ts
@@ -3,7 +3,7 @@ import { fixedScriptWallet, utxolibCompat } from '@bitgo/wasm-utxo';
3
4
import { getNetworkFromCoinName, UtxoCoinName } from '../names';
5
6
-import { SdkBackend } from './types';
+import { SdkBackend, BitGoPsbt } from './types';
7
8
type BufferEncoding = 'hex' | 'base64';
9
@@ -62,6 +62,10 @@ export function decodePsbtWith(
62
}
63
64
65
+export function decodePsbt(psbt: string | Buffer, coinName: UtxoCoinName): BitGoPsbt {
66
+ return decodePsbtWith(psbt, coinName, 'wasm-utxo');
67
+}
68
+
69
export function encodeTransaction(
70
transaction: utxolib.bitgo.UtxoTransaction<bigint | number> | utxolib.bitgo.UtxoPsbt | fixedScriptWallet.BitGoPsbt
71
): Buffer {
0 commit comments