WalletConnect

connectOpensea()

1440

By using the connectOpensea() method of Face Wallet SDK, you can launch a modal that allows Face Wallet to be connected with OpenSea through WalletConnect.

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

const face = new Face({
  network: Network.BORA_TESTNET, 
  apiKey: 'YOUR_DAPP_API_KEY'
});
await face.wc.connectOpensea();

If you want to make the OpenSea link directly go to a specific NFT collection link, please pass the collection name to a parameter.

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

const face = new Face({
  network: Network.BORA_TESTNET, 
  apiKey: 'YOUR_DAPP_API_KEY'
});
// Link was set as https://opensea.io/collection/OPENSEA_COLLECTION_NAME
await face.wc.connectOpensea('OPENSEA_COLLECTION_NAME');