Last updated 1 year ago
Get publicKey of current account.
async function getPublicKey(): string
the publicKey.
const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const publicKey = async provider.getPublicKey();