Get Wallet Information
getPublicKeys()
getPublicKeys()
The public keys for your wallet can be derived as following:
import { Face, Network } from '@haechi-labs/face-sdk';
const face = new Face({
network: Network.APTOS_TESTNET,
apiKey: 'YOUR_DAPP_API_KEY'
});
const faceProvider = face.aptos.getProvider();
const publicKey = faceProvider.getPublicKeys();
console.log("Public Key: ", publicKey);
getAddresses()
getAddresses()
The addresses for your wallet can be derived as following:
import { Face, Network } from '@haechi-labs/face-sdk';
const face = new Face({
network: Network.APTOS_TESTNET,
apiKey: 'YOUR_DAPP_API_KEY'
});
const faceProvider = face.aptos.getProvider();
const addresses = faceProvider.getAddresses();
console.log("Wallet Address: ", addresses[0]);
Updated about 1 year ago