This package has been deprecated

Author message:

Package no longer supported. The package no longer holds a list of default wallets please install specific wallet packages from https://www.npmjs.com/org/near-wallet-selector

@near-wallet-selector/default-wallets
TypeScript icon, indicating that this package has built-in type declarations

8.1.4 • Public • Published

@near-wallet-selector/default-wallets

This is the Default Wallets package for NEAR Wallet Selector.

This is the list of default wallets:

Note: This package does not contain any wallets by default.

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:

# Using Yarn
yarn add near-api-js

# Using NPM.
npm install near-api-js
# Using Yarn
yarn add @near-wallet-selector/default-wallets

# Using NPM.
npm install @near-wallet-selector/default-wallets

Then use it in your dApp:

import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupDefaultWallets } from "@near-wallet-selector/default-wallets";

const selector = await setupWalletSelector({
  network: "testnet",
  modules: await setupDefaultWallets(),
});

Options

The setupDefaultWallets does not take any options. You can override configuration for a wallet that is in the default list by including a customized instance of that wallet ahead of the default wallets in the modules array.

Note: In this case the customized wallet setup function must be placed before the setupDefaultWallets call.

Example

// The same can be done for MyNearWallet and Ledger too.
import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupDefaultWallets } from "@near-wallet-selector/default-wallets";

const selector = await setupWalletSelector({
  network: "testnet",
  modules: [
    setupLedger({
      iconUrl: "your-custom-icon-url",
    }),
    ...(await setupDefaultWallets())
  ],
});

License

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

Package Sidebar

Install

npm i @near-wallet-selector/default-wallets

Weekly Downloads

228

Version

8.1.4

License

none

Unpacked Size

29.9 kB

Total Files

9

Last publish

Collaborators

  • valeriivanchevlimechain
  • georgilime
  • nearlysean
  • frol
  • nearndy
  • ewiner
  • danny_near
  • trechriron