Decode transaction for appl type (Algorand Dart SDK)

Hii all!

Im trying to decode transaction with appl type, but I don’t know what transaction object should I use, example for payment I can use PaymentTransaction.fromJson(Encoder.decodeMessagePack(encodedBytes)) , but for appl type I can’t, here is the example data:

{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}

Thank You

It looks like I forgot to add the fromJson to the ApplicationBaseTransaction, but it looks like I might have to redo some work and improve the msgpack decoding support.

Can you use json in the meantime?

Hii, you mean sign transaction using json ?

To use json over msgpack for serialization. Can you explain what you are trying to do?

Im trying to sign and send transaction, but I found another issue when I create new application call and send the transaction it will fail if I use other random number for application id, if I use the one that in SDK example it works.