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

x/capi/mod.ts>hex.decodeBuf

[WIP] A framework for crafting interactions with Substrate chains
Latest
function hex.decodeBuf
import { hex } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { decodeBuf } = hex;

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Parameters

src: Uint8Array

Returns

Uint8Array