Skip to Content
dApps
このページの内容

getPublicKey

現在のアカウントの公開鍵を取得します。

メソッド

declare function getPublicKey(): Promise<string>;

レスポンス

文字列形式の公開鍵。

例

const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const publicKey = await provider.getPublicKey();

デモ

例を開く 

最終更新日