On this page
getAccounts
Read the addresses currently exposed to this site. To request access, use requestAccounts.
Method
declare function getAccounts(): Promise<string[]>;Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const accounts = await provider.getAccounts()Demo
Last updated on