Get Provider
Face Wallet offers a provider object for each blockchain. You can use the features of each blockchain through the Provider object.
Create a Face object to get a provider of each blockchain network. You can use the provider directly or inject it into another blockchain library.
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();
Updated about 1 year ago