> For the complete documentation index, see [llms.txt](https://blockchain-sports.gitbook.io/atleta-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blockchain-sports.gitbook.io/atleta-network/devs/build-testent/deploy-your-evm-app/ethers-js.md).

# Ethers·js

### What is Ethers.js?[​](https://docs.manta.network/docs/zkShuffle/Deploy/Ethers.js#what-is-ethersjs) <a href="#what-is-ethersjs" id="what-is-ethersjs"></a>

The Ethers.js library offers a collection of tools to interact with Ethereum nodes using JavaScript, similar to Web3.js. Atleta Olympia also has a similar API that is fully compatible with Ethereum's JSON RPC invocations. This means that developers can take advantage of this compatibility and use the Ethers.js library to interact with a Atleta Olympia node as if it were an Ethereum node.

#### Getting Started with Ethers.js[​](https://docs.manta.network/docs/zkShuffle/Deploy/Ethers.js#getting-started-with-ethersjs) <a href="#getting-started-with-ethersjs" id="getting-started-with-ethersjs"></a>

1. Create a JavaScript Project to store all of the files you'll be creating `mkdir ethers-examples && cd ethers-examples`
2. Install the Ethers.js library and the Solidity compiler `npm install ethers solc@0.8.0`

#### Setting up Ethers Provider[​](https://docs.manta.network/docs/zkShuffle/Deploy/Ethers.js#setting-up-ethers-provider) <a href="#setting-up-ethers-provider" id="setting-up-ethers-provider"></a>

1. Import the `ethers` library
2. Define the `providerRPC` object, which can include the network configurations for any of the networks you want to send a transaction on.
3. Create the `provider` using the `ethers.providers.StaticJsonRpcProvider` method. An alternative is to use the `ethers.providers.JsonRpcProvide(providerRPC)` method, which only requires the provider RPC endpoint address.

   ```javascript
   // 1. Import ethers
   const ethers = require('ethers');

   // 2. Define network configurations
   const providerRPC = {
   manta: {
       name: 'Atleta Olympia',
       rpc: 'https://testnet-rpc.atleta.network', // Insert your RPC URL here
       chainId: 2340, //Insert your ChainID Here
   },
   };
   // 3. Create ethers provider
   const provider = new ethers.providers.StaticJsonRpcProvider(
   providerRPC.constellation.rpc,
   {
       chainId: providerRPC.constellation.chainId,
       name: providerRPC.constellation.name,
   }
   );
   ```

Note: Ensure that all of your smart contracts are deployed on the Atleta Olympia chain and that you have updated contract addresses on the front-end.
