# Is there any guide to work on local test network using 1inch router?

**URL:** https://gov.1inch.network/t/is-there-any-guide-to-work-on-local-test-network-using-1inch-router/360
**Category:** 3.0 Developer Portal
**Created:** [April 2, 2022, 4:32am UTC](https://gov.1inch.network/t/is-there-any-guide-to-work-on-local-test-network-using-1inch-router/360 "2022-04-02T04:32:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![haris](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@haris](https://gov.1inch.network/u/haris)
#### Post date: [April 2, 2022, 4:32am UTC](https://gov.1inch.network/t/is-there-any-guide-to-work-on-local-test-network-using-1inch-router/360/1 "2022-04-02T04:32:33Z")

</div>

I wanted to interact with 1 inch router using ethers.js. But, i am overwhelmed by the functions and interfaces exposed in the 1inch router, [1inch v4: Router | Address 0x1111111254fb6c44bac0bed2854e76f90643097d | Etherscan](https://etherscan.io/address/1inch.eth#writeContract)  
(if it is the correct address).  
Any help appreciated how to implement contract methods according to this tutorial in a local network.  
[Quick start | 1inch Network](https://docs.1inch.io/docs/aggregation-protocol/guide/quick-start/#allow-exchange-with-1inch-router)

---

<div class="post-metadata">

### Author: ![Natalia](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@Natalia](https://gov.1inch.network/u/Natalia)
#### Post date: [April 12, 2022, 9:38am UTC](https://gov.1inch.network/t/is-there-any-guide-to-work-on-local-test-network-using-1inch-router/360/2 "2022-04-12T09:38:26Z")

</div>

hey there,

The method you have in mind is unlikely possible , the only way is to use the API

---

<div class="post-metadata">

### Author: ![Anonymous164](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anonymous164](https://gov.1inch.network/u/Anonymous164)
#### Post date: [April 24, 2022, 12:43pm UTC](https://gov.1inch.network/t/is-there-any-guide-to-work-on-local-test-network-using-1inch-router/360/3 "2022-04-24T12:43:12Z")

</div>

There is no testnet or local network for 1inch contract because we don’t have all liquidity sources on testnet.

Anyway, you can use ganache fork to emulate real mainnet calls

 ![](https://github.githubassets.com/favicons/favicon.svg)

```
  <a href="https://github.com/trufflesuite/ganache" target="_blank" rel="noopener nofollow ugc">GitHub</a>

```

 ![](https://global.discourse-cdn.com/standard11/uploads/x1inch/optimized/1X/5fcd19b298b35f1645a22ea912ea9e2d4d082abc_2_690x345.png)

### [GitHub - trufflesuite/ganache: A tool for creating a local blockchain for...](https://github.com/trufflesuite/ganache)

A tool for creating a local blockchain for fast Ethereum development. - GitHub - trufflesuite/ganache: A tool for creating a local blockchain for fast Ethereum development.

How to use:

1. Install ganache-cli

2. Run next command to setup a mainnet fork

ganache-cli --fork node-url -p 9545 --gasLimit 0xfffffffffff

Next you can connect to Web3 Provider on [remix.ethereum.org](http://remix.ethereum.org) with 9545 port (you can do that also via code)

And emulate execution for all data
