本页目录
getAccounts
读取当前向本站开放的地址。需要请求访问权限时,请使用 requestAccounts。
方法
declare function getAccounts(): Promise<string[]>;示例
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const accounts = await provider.getAccounts()演示
最后更新于
读取当前向本站开放的地址。需要请求访问权限时,请使用 requestAccounts。
declare function getAccounts(): Promise<string[]>;const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const accounts = await provider.getAccounts()