Skip to main content
Module

x/polkadot/mod.ts>typesCodec.decodeU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function typesCodec.decodeU8a
import { typesCodec } from "https://deno.land/x/polkadot@0.2.33/mod.ts";
const { decodeU8a } = typesCodec;

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]