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