Skip to Content
dApp 接入
本页目录

getPublicKey

方法

declare function getPublicKey(): Promise<string>;

响应

返回十六进制格式的公钥

示例

const provider = (window.$onekey && window.$onekey.nostr) || window.nostr; const pubkey = await provider.getPublicKey()

演示

打开示例 

最后更新于