@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
19 lines (18 loc) • 579 B
TypeScript
import type { ApiPromise } from '@polkadot/api';
import type { IExtrinsic, IMessages } from '../../types/responses';
declare enum ChainType {
Relay = "Relay",
Parachain = "Parachain"
}
export declare class XcmDecoder {
readonly messages: IMessages;
readonly api: ApiPromise;
readonly curChainType: ChainType;
readonly specName: string;
constructor(api: ApiPromise, specName: string, extrinsics: IExtrinsic[], paraId?: number);
private getCurChainType;
private getMessages;
private checkMessagesInRelay;
private decodeMsg;
}
export {};