Skip to Content
dApp 接入

getAccounts

获取当前账户的地址

方法

async function getAccounts(): string[]

示例

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

演示

Last updated on