> For the complete documentation index, see [llms.txt](https://yuga.gitbook.io/zkyuga-whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yuga.gitbook.io/zkyuga-whitepaper/developer-guide/stablecoin/getactioncontractinstance.md).

# getActionContractInstance

The `getActionContractInstance` function creates a new instance of an Ethereum contract using the ethers.js library. This function is particularly useful for interacting with smart contracts on the Ethereum blockchain.

## Function Signature

```javascript
getActionContractInstance(signer: any): Contract
```

### Parameters

| Parameter | Type | Description                                                                                                                                |
| --------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| signer    | any  | The signer object representing an Ethereum account that will be used to sign transactions and queries made through this contract instance. |

### Returns

| Type     | Description                                                                                         |
| -------- | --------------------------------------------------------------------------------------------------- |
| Contract | An instance of the specified contract, allowing interaction with the contract's methods and events. |

### Example

```javascript
// Assuming ethers is imported and a signer is available
let contractInstance = getActionContractInstance(signer);
```

This example demonstrates how to use the `getActionContractInstance` function to create a contract instance. The `signer` parameter is assumed to be a valid ethers.js Signer object.

### Notes

* The `address` and `abi` (Application Binary Interface) are assumed to be predefined within the scope where this function is called.
* Ensure that the provided `signer` is connected to the appropriate Ethereum network that the contract is deployed on.
