> 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/unpause.md).

# unpause

The `unpause` function in StableCoin Contracts is an essential tool for resuming contract operations that have been temporarily halted. This function is particularly valuable in scenarios where the contract's activities need to be paused for maintenance, emergencies, or other administrative reasons. Typically, the ability to unpause a contract is restricted to certain roles, such as the contract owner or administrators, to ensure controlled management of contract functionalities.

## Method Signature

```typescript
async unpause(signer: any): Promise<string>
```

## Parameters

* `signer: any`: An object representing the signer of the transaction, usually obtained from a wallet interface like MetaMask or ethers.js.

## Function Logic

1. **Get Contract Instance**: Secures a contract instance using the `signer`, necessary for interacting with the blockchain.
2. **Unpause Transaction**: Executes the `unpause` method on the contract, allowing the resumption of paused operations.
3. **Return Result**: The result of the unpause operation, typically a transaction hash, is returned as a string.

## Example Usage

```typescript
const signer = ethersProvider.getSigner();

stableCoinContract.unpause(signer)
    .then(result => 
        // add your logic here 
    )
    .catch(error => 
        // add your logic here
    );
```

## Notes

* The `unpause` function is crucial for managing the operational state of the contract, especially in dynamic and evolving scenarios.
* Authorized access is essential to prevent unauthorized or accidental resumption of contract activities.
