dApp 接入本页目录方法响应示例演示复制页面在 ChatGPT 中打开在 Claude 中打开getPublicKey 方法 declare function getPublicKey(): Promise<string>; 响应 返回十六进制格式的公钥 示例 const provider = (window.$onekey && window.$onekey.nostr) || window.nostr; const pubkey = await provider.getPublicKey() 演示 打开示例 最后更新于 2026年10月13日快速开始概述