Decode canister response to query request

Replacing \x with \, you can feed the message into didc for decoding, e.g. didc decode -f blob 'blob "DIDL\0fl\04\b2\ce...."'

Here is the type table I get from didc:

type table0 = record {
         100_394_802 : text;
         142_895_325 : table1;
         1_365_803_947 : table11;
         2_584_819_143 : text;
       }
       type table1 = opt table2
       type table10 = opt nat64
       type table11 = opt table12
       type table12 = vec table13
       type table13 = record { 9_671_866 : text; 1_365_803_947 : table14 }
       type table14 = vec text
       type table2 = record {
         307_110_897 : nat64;
         790_889_754 : table3;
         1_246_878_287 : nat64;
         1_255_534_921 : nat64;
       }
       type table3 = vec table4
       type table4 = record {
         23_515 : nat64;
         5_843_823 : text;
         71_774_222 : int64;
         91_645_067 : bool;
         272_307_608 : text;
         725_156_365 : bool;
         947_296_307 : table5;
         1_092_319_906 : text;
         1_096_164_836 : table7;
         1_400_566_464 : text;
         1_779_848_746 : int64;
         1_907_094_701 : bool;
         2_136_900_368 : table10;
         2_169_702_505 : text;
         2_411_117_479 : principal;
         3_063_258_767 : nat64;
         3_186_091_175 : int64;
         3_741_114_232 : bool;
         4_109_927_633 : bool;
         4_247_091_884 : table9;
       }
       type table5 = record {
         23_515 : principal;
         381_635_694 : nat64;
         552_306_198 : text;
         1_311_134_999 : nat64;
         1_779_848_746 : int64;
         2_169_702_505 : text;
         3_048_521_879 : table6;
       }
       type table6 = record { 1_869_947_023 : principal; 2_478_603_148 : bool }
       type table7 = opt table8
       type table8 = record {
         23_515 : nat64;
         272_307_608 : text;
         947_296_307 : table5;
         2_411_117_479 : principal;
         4_247_091_884 : table9;
       }
       type table9 = record {
         23_515 : nat64;
         91_645_067 : bool;
         1_224_700_491 : text;
         1_280_697_131 : text;
         2_169_702_505 : text;
       }
4 Likes