Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 424 Bytes

File metadata and controls

20 lines (12 loc) · 424 Bytes

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

{% embed url="https://codepen.io/OneKeyHQ/pen/qBgMXRM" %}