# Function forArtifactAt

- forArtifactAt(artifact, address, settings?): Promise<ContractInstanceEncoder>

- This function is asynchronous.

  Constructs a contract instance decoder for a contract instance at a given address.

  #### Parameters

  - ##### artifact: ContractObject

    The artifact corresponding to the type of the contract.

    A contract constructor object may be substituted for the artifact, so if you're not sure which you're dealing with, it's OK.

  - ##### address: string

    The address of the contract instance to decode.

    Address must either be checksummed, or in all one case to circumvent the checksum. Mixed-case with bad checksum will cause this function to throw an exception.

  - ##### settings: EncoderSettings = {}

    The [[EncoderSettings]] to use; see the documentation for that type for more information. If absent, the encoder will be based on just the single contract provided; it is recommended to pass more information to get the encoder's full power.

    Note that if the artifact contains unlinked libraries, you will have to pass either the `provider` or `networkId` setting in order to encode contract creation transactions.

  #### Returns Promise<ContractInstanceEncoder>

  - Defined in encoder/lib/index.ts:333

Generated using TypeDoc