Get Wallet Information
getPublicKey()
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.NEAR,
apiKey: 'YOUR_DAPP_API_KEY'
});
const faceProvider = face.near.getProvider();
const publicKey = faceProvider.getPublicKey();
console.log("Public Key: ", publicKey);
Updated 12 months ago