Skip to main content

Module encode

Module encode 

Source
Expand description

SCALE encode with the seam’s lenient input coercions: ss58 strings or 0x-hex for account ids, hex/str/bytes for byte carriers, bare variant names or {"Variant": payload} dicts for enums, None for Option-None, ints for compacts. Byte-equality with the previous codec is pinned by the golden call/payload/extrinsic vectors.

Functions§

compact
Compact-encode an unsigned integer.