Skip to main content

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

ParameterTypeDescription
providerproviders.ProviderThe provider used to communicate with the blockchain.
factoryAddressstringThe address of the Factory contract.
signerSigner(Optional) The signer used to sign transactions.