import type { NextApiRequest , NextApiResponse } from 'next' ; import { getNodeUrl } from '@figment-secret/lib' ; import { CosmWasmClient } from 'secretjs' ; export default async function connect ( _req , res ) { try { const url = getNodeUrl ( ) ; const client = undefined ; const nodeInfo = undefined ; const version = undefined ; res . status ( 200 ) . json ( version ) ; } catch ( error ) { let errorMessage = error instanceof Error ? error . message : 'Unknown Error' ; res . status ( 500 ) . json ( errorMessage ) ; } }