open-index/open-npm huggingface dataset:
npm package: @near-finance-near-wallet-selector/wallet-connect
Description: Wallet Connect package for NEAR Wallet Selector.
Latest version: 8.1.14

# @near-finance-near-wallet-selector/wallet-connect

This is the [WalletConnect](https://walletconnect.com/) 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` v1.0.0 or above:

```bash
# Using Yarn
yarn add near-api-js

# Using NPM.
npm install near-api-js
```
```bash
# Using Yarn
yarn add @near-finance-near-wallet-selector/wallet-connect

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

Then use it in your dApp:

```ts
import { setupWalletSelector } from "@near-finance-near-wallet-selector/core";
import { setupWalletConnect } from "@near-finance-near-wallet-selector/wallet-connect";

const walletConnect = setupWalletConnect({
  projectId: "c4f79cc...",
  metadata: {
    name: "NEAR Wallet Selector",
    description: "Example dApp used by NEAR Wallet Selector",
    url: "https://github.com/near/wallet-selector",
    icons: ["https://avatars.githubusercontent.com/u/37784886"],
  },
  chainId: "near:testnet",
  iconUrl: "https://yourdomain.com/yourwallet-icon.png",
});

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

## Wallet Connect Configuration

Project ID is required for wallet connect, please obtain it from [walletconnect.com](https://walletconnect.com/)


## Options

- `projectId` (`string`): Project ID is `required` to instantiate the client. More details can be found [here](https://docs.walletconnect.com/2.0/cloud/relay#project-id).
- `metadata` (`object`): Metadata used to provide context of the dApp to the connected wallet. More details can be found [here](https://docs.walletconnect.com/2.0/specs/clients/core/pairing/data-structures#metadata).
- `chainId` (`string?`): Chain ID for requests. Defaults to `"near:<networkId>` unless using custom network configuration.
- `relayUrl` (`string?`): Relay URL for requests. Defaults to `"wss://relay.walletconnect.com"`.
- `iconUrl` (`string?`): Image URL for the icon shown in the modal. This can also be a relative path or base64 encoded image. Defaults to `./assets/wallet-connect-icon.png`.
- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`.

## Assets

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

```ts
import { setupWalletConnect } from "@near-finance-near-wallet-selector/wallet-connect";
import walletConnectIconUrl from "@near-finance-near-wallet-selector/wallet-connect/assets/wallet-connect-icon.png";

const walletConnect = setupWalletConnect({
  iconUrl: walletConnectIconUrl
});
```

## License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
npm package: @near-finance-near-wallet-selector/wallet-utils
Description: Wallet utils package for NEAR Wallet Selector.
Latest version: 8.1.14

# @near-finance-near-wallet-selector/wallet-utils

This is the Wallet Utils 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` v1.0.0 or above:

```bash
# Using Yarn
yarn add near-api-js

# Using NPM.
npm install near-api-js
```

```bash
# Using Yarn
yarn add @near-finance-near-wallet-selector/wallet-utils

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

Then use it in your custom wallet integration:

```ts
import { createAction, signTransactions } from "@near-finance-near-wallet-selector/wallet-utils";

const action = createAction({
  type: "Transfer",
  params: {
    deposit: "10000000000000000000000",
  },
});

const signedTransactions = await signTransactions(
  [{ signerId, receiverId, actions }],
  signer,
  options.network
);
```

## License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
npm package: @near-finance-near-wallet-selector/welldone-wallet
Description: Welldone wallet package for NEAR Wallet Selector.
Latest version: 8.1.14

# @near-finance-near-wallet-selector/welldone

This is the [WELLDONE](https://chrome.google.com/webstore/detail/welldone-wallet-for-multi/bmkakpenjmcpfhhjadflneinmhboecjf) 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` v1.0.0 or above:

```bash
# Using Yarn
yarn add near-api-js

# Using NPM.
npm install near-api-js
```
```bash
# Using Yarn
yarn add @near-finance-near-wallet-selector/welldone-wallet

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

Then use it in your dApp:

```ts
import { setupWalletSelector } from "@near-finance-near-wallet-selector/core";
import { setupWelldoneWallet } from "@near-finance-near-wallet-selector/welldone-wallet";

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

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

## 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 `./assets/welldone-wallet.png`.
- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`.

## Assets

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

```ts
import { setupWelldoneWallet } from "@near-finance-near-wallet-selector/welldone-wallet";
import welldoneIconUrl from "@near-finance-near-wallet-selector/welldone-wallet/assets/welldone-wallet.png";

const welldone = setupWelldoneWallet({
  iconUrl: welldoneIconUrl
});
```

## License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
npm package: @near-finance-near-wallet-selector/xdefi
Description: This is the XDEFI package for NEAR Wallet Selector.
Latest version: 8.1.14

# @near-finance-near-wallet-selector/xdefi

This is the [XDEFI](https://www.xdefi.io/) 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` v1.0.0 or above:

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

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

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

Then use it in your dApp:

```ts
import { setupWalletSelector } from "@near-finance-near-wallet-selector/core";
import { setupXDEFI } from "@near-finance-near-wallet-selector/xdefi";

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

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

## 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 `./assets/xdefi-icon.png`.
- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`.

## Assets

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

```ts
import { setupXDEFI } from "@near-finance-near-wallet-selector/xdefi";
import xdefiIconUrl from "@near-finance-near-wallet-selector/xdefi/assets/xdefi-icon.png";

const xdefi = setupXDEFI({
  iconUrl: xdefiIconUrl
});
```

## License

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