Decode Unsigned Transaction (Algorand Dart SDK)

Hi all!

Is there any way to decode unsigned transaction using Algorand Dart SDK? like JS-Algorand-SDK

Example using JS-Algorand-SDK :

const rawTx = algosdk.decodeUnsignedTransaction(base64ToByteArray(walletTx.txn))

You can do something like:

PaymentTransaction.fromJson(Encoder.decodeMessagePack(encodedBytes));

There’s no option (yet) for a generic Transaction object. Your best bet would be to decode the msgpack to a Map<String, dynamic> and then use a factory to parse the type to the correct tx.

Hii, if the data is like this, what transaction object should I use ? I have tried using ApplicationTransactionResponse.fromJson() but failed, because I need to sign the transaction. Thank You

{apaa: [[115, 119, 97, 112], [0, 0, 0, 0, 0, 0, 83, 53], [0, 0, 0, 0, 0, 0, 84, 12]], apas: [0, 26835113], apat: [[152, 74, 46, 63, 169, 159, 166, 70, 16, 116, 205, 239, 239, 223, 97, 97, 103, 246, 236, 13, 1, 179, 219, 49, 183, 102, 232, 14, 66, 10, 221, 168]], apfa: [69308754, 69308773], apid: 69308797, fee: 3000, fv: 20310447, gen: testnet-v1.0, gh: [72, 99, 181, 24, 164, 179, 200, 78, 200, 16, 242, 45, 79, 16, 129, 203, 15, 113, 240, 89, 167, 172, 32, 222, 198, 47, 127, 112, 229, 9, 58, 34], grp: [253, 221, 237, 129, 200, 79, 40, 16, 113, 111, 154, 231, 61, 29, 184, 135, 18, 16, 179, 12, 1, 131, 34, 163, 91, 121, 210, 44, 111, 187, 131, 169], lv: 20311447, snd: [104, 31, 104, 26, 209, 121, 253, 210, 215, 1, 251, 67, 106, 200, 141, 4, 158, 239, 166, 38, 20, 177, 52, 122, 94, 30, 109, 102, 219, 207, 133, 203], type: appl}