API
@joyid/bitcoin
getPublicKey

getPublicKey

Get publicKey of current account.

Parameters

none

Returns

string: publicKey

Example

try {
  let res = getPublicKey();
  console.log(res)
} catch (e) {
  console.log(e);
}
> 03cbaedc26f03fd3ba02fc936f338e980c9e2172c5e23128877ed46827e935296f