API
@joyid/bitcoin
requestAccounts

requestAccounts

Connect the current account.

Parameters

none

Returns

Promise<string[]>: Address of current account.

Example

try {
  let accounts = await requestAccounts();
  console.log('connect success', accounts);
} catch (e) {
  console.log('connect failed');
}