@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
11 lines (10 loc) • 472 B
TypeScript
import { RequestHandler } from 'express';
/**
* Express Middleware to validate the `useRcBlock` query parameter.
*
* This middleware performs the following validations:
* 1. Asset Hub requirement - validates that the current API is connected to Asset Hub
* 2. Relay chain availability - ensures relay chain API is available
* 3. Boolean validation - ensures useRcBlock is a valid boolean string
*/
export declare const validateUseRcBlockMiddleware: RequestHandler;