isXmtpFrameRequest
import { FrameRequest } from '@coinbase/onchainkit/frame';
import { isXmtpFrameRequest } from '@coinbase/onchainkit/xmtp';
import { NextResponse } from 'next/server';
async function getResponse(req: any): Promise<NextResponse> {
const body: FrameRequest = await req.json();
if (isXmtpFrameRequest(body)) {
// ...
}
}
Returns
- Type:
boolean