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.SOLANA, 
  apiKey: 'YOUR_DAPP_API_KEY'
});
const faceProvider = face.solana.getProvider();