getAccounts
Get address of current account
Method
async function getAccounts(): string[]
Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const accounts = async provider.getAccounts()
Demo
Last updated
Was this helpful?