Skip to Content
dApps
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

Open example 

Last updated on