getDiamondFactoryOnChain(chainId: ChainId, signerOrProvider: Signer | Provider)
This function retrieves the DiamondFactory contract instance deployed on the specified chain connected to the specified signerOrProvider
.
Parameters
chainId
: The ID of the blockchain networksignerOrProvider
: The signer instance for transactions or provider instance for read-only operations
Returns
An object containing the targeted DiamondFactory contract instance
Usage Example
const diamondFactory = sdk.getDiamondFactoryOnChain(11155111, provider);