Creating Clients
Import the necessary dependencies and create an instance of the CrestFiStreamClient
class:
import { CrestFiStreamClient } from "@crestfi/crest-bnb-sdk";
// Create an instance of CrestFiStreamClient
const crestfiClient = new CrestFiStreamClient(signer);
Getting Signer Address
You can get the signer's address using the getSignerAddress()
method:
const signerAddress = await client.getSignerAddress();
console.log("Signer Address:", signerAddress);
Last updated