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

x/capi/mod.ts>known.StateCalls

[WIP] A framework for crafting interactions with Substrate chains
Latest
type alias known.StateCalls
Re-export
import { type known } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";
const { StateCalls } = known;
definition: { state_callAt: StateCalls["state_call"]; state_getKeysPagedAt: StateCalls["state_getKeysPaged"]; state_getStorageAt: StateCalls["state_getStorage"]; state_getStorageHashAt: StateCalls["state_getStorageHash"]; state_getStorageSizeAt: StateCalls["state_getStorageSize"]; chain_getRuntimeVersion: StateCalls["state_getRuntimeVersion"]; state_call(
name: string,
bytes: string,
at?: string,
): string; state_getKeys(prefix: StorageKey, at?: string): StorageKey[]; state_getPairs(prefix: StorageKey, at?: string): [StorageKey, StorageData][]; state_getKeysPaged(
prefix: StorageKey | null,
count: number,
startKey?: StorageKey,
at?: string,
): StorageKey[]; state_getStorage(key: StorageKey, at?: string): StorageData | null; state_getStorageHash(key: StorageKey, at?: string): string | null; state_getStorageSize(key: StorageKey, at?: string): number | null; state_getMetadata(at?: string): string; state_getRuntimeVersion(at?: string): RuntimeVersion; state_queryStorage(
keys: StorageKey[],
block: string,
at?: string,
): StorageChangeSet[]; state_queryStorageAt(keys: StorageKey[], at?: string): StorageChangeSet[]; state_getReadProof(keys: StorageKey[], at?: string): ReadProof; }