original documentation
try { const {data:{account}} = await dots.account.getAccount(); console.log(account); } catch (error) { console.log(error); }