dApp 接入Copy pagegetAccounts 获取当前账户的地址 方法 async function getAccounts(): string[] 示例 const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const accounts = async provider.getAccounts() 演示 Last updated on 2026年3月13日