Get Wallet Information

getPublicKey()

The public key for your wallet can be derived as following:

import { Face, Network } from '@haechi-labs/face-sdk';

const face = new Face({
  network: Network.SOLANA, 
  apiKey: 'YOUR_DAPP_API_KEY'
});
const faceProvider = face.solana.getProvider();
const publicKey = faceProvider.getPublicKey();
console.log("Public Key: ", publicKey);