sdk.factory._constructor_
Home > @openformat/sdk > Factory > (constructor)
Factory.(constructor)
Create a new instance of the Factory class.
Signature:
constructor(provider: providers.Provider, factoryAddress: string, signer?: Signer);
Parameters
| Parameter | Type | Description |
|---|---|---|
| provider | providers.Provider | The provider used to communicate with the blockchain. |
| factoryAddress | string | The address of the Factory contract. |
| signer | Signer | (Optional) The signer used to sign transactions. |