From 8b7705d6dee65e45f41171a7f068c56a596ba317 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 6 Aug 2026 14:20:01 +0000 Subject: [PATCH] docs: clarify deprecated Snap Functions API --- snaps/get-started/quickstart.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snaps/get-started/quickstart.md b/snaps/get-started/quickstart.md index 3d2c3544325..e9eb6335300 100644 --- a/snaps/get-started/quickstart.md +++ b/snaps/get-started/quickstart.md @@ -136,6 +136,11 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ origin, request }) => +:::warning +The Functions API is deprecated. Use the JSX API above for new Snaps. This example is kept for +legacy Snaps that still use the function-based custom UI library. +::: + ```ts title="index.ts" import type { OnRpcRequestHandler } from '@metamask/snaps-sdk' import { panel, text } from '@metamask/snaps-sdk'