# hardhat-arbitrum

> Hardhat plugin for Arbitrum

Latest version **0.0.2** (published 2022-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install hardhat-arbitrum
pnpm add hardhat-arbitrum
yarn add hardhat-arbitrum
bun add hardhat-arbitrum
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-10-15 |
| First published | 2022-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Alyosha Agapov |
| Maintainers | blocklimax |
| Keywords | ethereum, smart-contracts, hardhat, hardhat-plugin |

## Links

- npm: https://www.npmjs.com/package/hardhat-arbitrum
- Repository: https://github.com/climax-solution/hardhat-arbitrum
- Homepage: https://github.com/climax-solution/hardhat-arbitrum#readme
- Issues: https://github.com/climax-solution/hardhat-arbitrum/issues
- npm.io page: https://npm.io/package/hardhat-arbitrum

## Dependencies (1)

- [@nomicfoundation/hardhat-toolbox](https://npm.io/package/@nomicfoundation/hardhat-toolbox.md) ^1.0.2

## Recent versions

- 0.0.2 (latest) — 2022-10-15

## README

# hardhat-arbitrum

Hardhat plugin for Arbitrum Developers.

## Features

ArbitrumScan Contract Verification

## Prerequisites

Before the installation steps you need to have your hardhat project initialized using the command

```bash
npx hardhat init
```

Make sure to have dependencies installed!

## Installation

Use the following command to install

```bash
npm i hardhat-arbitrum --save-dev
```

Import the plugin in your `hardhat.config.js`:

```js
require("hardhat-arbitrum");
```

Or if you are using TypeScript, in your `hardhat.config.ts`:

```ts
import "hardhat-arbitrum";
```

Remove / Comment the import for `@nomicfoundation/hardhat-toolbox`

Add the following configuration to the `config` object in `hardhat.config.js`.

```js
networks: {
        arbitrumGoerli: {
            // can be replaced with the RPC url of your choice.
            url: "https://goerli-rollup.arbitrum.io/rpc",
            accounts: [
                "<YOUR_PRIVATE_KEY>"
            ],
        },
        arbitrumOne: {
            url: "https://arb1.arbitrum.io/rpc",
            accounts: [
                "<YOUR_PRIVATE_KEY>"
            ],
        }
    },
    etherscan: {
        apiKey: {
            arbitrumGoerli: "<OPTIMISMSCAN_API_KEY>",
            arbitrumOne: "<OPTIMISMSCAN_API_KEY>"
        },
    },
```

Verify your contracts using the following command (Make sure your contracts are compiled before verification)

Arbitrum Goerli Testnet

```bash
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network arbitrumGoerli
```

Arbitrum Mainnet

```bash
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network arbitrumOne
```

---
_Source: https://npm.io/package/hardhat-arbitrum · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
