Skip to Content
dApp 接入
本页目录

getAccounts

读取当前向本站开放的地址。需要请求访问权限时,请使用 requestAccounts。

方法

declare function getAccounts(): Promise<string[]>;

示例

const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const accounts = await provider.getAccounts()

演示

打开示例 

最后更新于