← Substrate Utilities

Hopefully this page helps you do something.

Cheat Sheet

Enum
{ "MyEnum": { "_enum": ["A", "B"] } }
Tuple
{ "MyTuple": "(u64, u64)" }
Vector
{ "MyVec": "Vec<u8>" }
Advance Example
[ { "MyEnum": { "_enum": ["A", "B", "C"] } }, { "MyPartA": "Vec<(MyEnum, u32)>" }, { "MyType": "(MyPartA, u128)" }, { "MyFinalType": "Vec<MyType>" } ]

SCALE Decoder