UNPKG

@substrate/api-sidecar

Version:

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

13 lines (12 loc) 451 B
import { BlockHash } from '@polkadot/types/interfaces'; import { IMetadataCode } from 'src/types/responses'; import { AbstractService } from '../AbstractService'; export declare const CODE_KEY = "0x3a636f6465"; export declare class RuntimeCodeService extends AbstractService { /** * Fetch `Metadata` in decoded JSON form. * * @param hash `BlockHash` to make call at */ fetchCode(hash: BlockHash): Promise<IMetadataCode>; }