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

x/capi/mod.ts>$.instance

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

Type Parameters

AI extends readonly unknown[]
AO extends readonly unknown[]
I
O

Parameters

ctor: new (...args: AO) => O
$args: Codec<AI, AO>
toArgs: (value: I) => [...AI]