Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Package publishing for deno.land/x/polkadot
Go to Latest
function decodeU8a
import { decodeU8a } from "https://deno.land/x/polkadot@0.2.14/types-codec/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]