# neth

> control NEAR accounts with ETH accounts

Latest version **7.9.4** (published 2023-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install neth
pnpm add neth
yarn add neth
bun add neth
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.9.4 |
| Published | 2023-03-11 |
| First published | 2022-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 306.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mattlockyer |
| Maintainers | mattlockyer |

## Links

- npm: https://www.npmjs.com/package/neth
- npm.io page: https://npm.io/package/neth

## Dependencies (3)

- [ava](https://npm.io/package/ava.md) ^4.3.3
- [is-mobile](https://npm.io/package/is-mobile.md) ^4.0.0
- [@near-wallet-selector/core](https://npm.io/package/@near-wallet-selector/core.md) ^7.1.0

## Recent versions

- 7.9.4 (latest) — 2023-03-11
- 7.9.3 — 2023-03-10
- 7.9.2 — 2023-03-10
- 7.9.1 — 2023-03-08
- 7.1.2 — 2022-11-05
- 7.1.1 — 2022-11-04
- 0.5.13 — 2022-10-27
- 0.5.12 — 2022-10-26
- 0.5.11 — 2022-10-26
- 0.5.10 — 2022-10-26
- 0.5.9 — 2022-10-26
- 0.5.8 — 2022-10-25
- 0.5.7 — 2022-10-24
- 0.5.6 — 2022-10-24
- 0.5.5 — 2022-10-24
- … 21 more at https://npm.io/package/neth/versions

## README

# @near-wallet-selector/neth

This is the [NETH](https://neth.app) package for NEAR Wallet Selector.

## Installation and Usage

The easiest way to use this package is to install it from the NPM registry, this package requires `near-api-js` v0.44.2 or above:

```bash
# Using Yarn
yarn add near-api-js@^0.44.2

# Using NPM.
npm install near-api-js@^0.44.2
```
```bash
# Using Yarn
yarn add @near-wallet-selector/neth

# Using NPM.
npm install @near-wallet-selector/neth
```

Then use it in your dApp:

```ts
import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupNeth } from "@near-wallet-selector/neth";

// NETH for Wallet Selector can be setup without any params or it can take one optional param.
const neth = setupNeth({
  iconUrl: "https://yourdomain.com/yourwallet-icon.png" //optional
});

const selector = await setupWalletSelector({
  network: "testnet",
  modules: [neth],
});
```

## Options

- `iconUrl`: (`string?`): Image URL for the icon shown in the modal. This can also be a relative path or base64 encoded image. Defaults to the neth logo.

## Assets

Assets such as icons can be found in the `/assets` directory of the package. Below is an example using Webpack:

```ts
import { setupNeth } from "@near-wallet-selector/neth";
import { nearWalletIcon } from "@near-wallet-selector/neth/assets/icons";

const neth = setupNeth({
  iconUrl: nearWalletIcon
});
```

## License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

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