Module

x/polkadot/types-codec/utils/index.ts>decodeU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function decodeU8a
import { decodeU8a } from "https://dotland.deno.dev/x/polkadot@0.2.23/types-codec/utils/index.ts";

Type Parameters

optional
T extends Codec = Codec

Parameters

registry: Registry
  • The u8a to decode.
result: T[]
  • The result array (will be returned with values pushed)
u8a: Uint8Array
  • The array of CodecClass to decode the U8a against.
unnamed 3: [CodecClass<T>[], string[]]

Returns

[T[], number]