getDiamondAsFacets

getDiamondAsFacets(addressOfDiamond: string, signerOrProvider: Signer | Provider)

This function retrieves all the Contract Instances (Facets) at the specified Diamond's address connected to the specified signerOrProvider.

Parameters

  • addressOfDiamond: The address of the Diamond contract
  • signerOrProvider: The signer instance for transactions or provider instance for read-only operations

Returns

An object containing instances of various facets of the targeted Diamond

Usage Example

const diamondFacets = sdk.getDiamondAsFacets("0x123...", signer);