getPublicKey
Get publicKey of current account.
Method
async function getPublicKey(): stringParams
the publicKey.
Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const publicKey = async provider.getPublicKey();Demo
Last updated
Was this helpful?
