8.9.7 • Published 1 month ago

@near-wallet-selector/core v8.9.7

Weekly downloads
-
License
-
Repository
github
Last release
1 month ago

@near-wallet-selector/core

This is the core 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:

# Using Yarn
yarn add near-api-js

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

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

Then use it in your dApp:

import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet";

// The entire set of options can be found in the section below.
const selector = await setupWalletSelector({
  network: "testnet",
  modules: [setupMyNearWallet()],
});

Options

  • network (NetworkId | Network): Network ID or object matching that of your dApp configuration . Network ID can be either mainnet or testnet.
    • networkId (string): Custom network ID (e.g. localnet).
    • nodeUrl (string): Custom URL for RPC requests.
    • helperUrl (string): Custom URL for creating accounts.
    • explorerUrl (string): Custom URL for the NEAR explorer.
    • indexerUrl (string): Custom URL for the Indexer service.
  • debug (boolean?): Enable internal logging for debugging purposes. Defaults to false.
  • optimizeWalletOrder (boolean?): Enable automatic wallet order. Reorders last signed in wallet on top, then installed wallets over not installed and deprecated wallets.
  • randomizeWalletOrder (boolean?): Randomize wallets order in the More section of the UI.
  • allowMultipleSelectors (boolean?): Optionally allow creating new instances of wallet selector.
  • languageCode (string?): Optionally set specific ISO 639-1 two-letter language code, disables language detection based on the browser's settings.
  • relayerUrl (string?): Optionally set the URL that meta-transaction enabled wallet modules can use to submit DelegateActions to a relayer
  • storage (StorageService?): Async storage implementation. Useful when localStorage is unavailable. Defaults to localStorage.
  • modules (Array<WalletModuleFactory>): List of wallets to support in your dApp.

API Reference

You can find the entire API reference for Wallet Selector here.

License

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

near-aggregator@infinitebrahmanuniverse/nolb-_nea@everything-registry/sub-chunk-637@near-wallet-selector/math-walletref-orderly-testref-orderly-trading-view-testreact-nearkeypom-jskeypom-js-testingkeypom-ws-plugin@eurega/near@near-relay/client@near-relay/server@near-snap/sdk@multi-transaction/wallet-selector@linear-protocol/phoenix-bonds-sdk@near-wallet-selector/sender@near-wallet-selector/wallet-connect@near-wallet-selector/wallet-utils@near-wallet-selector/welldone-wallet@near-wallet-selector/xdefi@near-wallet-selector/account-export@near-wallet-selector/bitget-wallet@near-wallet-selector/coin98-wallet@near-wallet-selector/default-wallets@near-wallet-selector/finer-wallet@near-wallet-selector/near-wallet@near-wallet-selector/nearfi@near-wallet-selector/neth@near-wallet-selector/nightly@near-wallet-selector/nightly-connect@near-wallet-selector/opto-wallet@near-wallet-selector/ramper-wallet@near-wallet-selector/modal-ui@near-wallet-selector/modal-ui-js@near-wallet-selector/my-near-wallet@near-wallet-selector/narwallets@near-wallet-selector/near-mobile-wallet@near-wallet-selector/near-snap@near-wallet-selector/here-wallet@near-wallet-selector/ledger@near-wallet-selector/meteor-wallet@neargen-js/core@openocean.finance/wallet@calimero-is-near/calimero-p2p-sdk@chainsafe/near-snap@arbitoor/arbitoor-core@corndao/corn-sdk@corndao/near-multi-tx@corndao/wallet-selector-modal-ui@corndao/wallet-selector-sender@dapplets/dapplet-extension@distributedlab/w3pcra-template-near-frontcra-template-next-nearfood-trace-xmu@meteorwallet/wallet-selector@mintbase-js/wallet@mintbase-js/auth@mintbase-js/react@keypom/core@orderly.network/orderly-sdkmy-near-app@perk.money/perk-swap-corenethnamesky-sdknear-viemnear-social-local-viewernearflipcoinspfi-browsersspfi-coresnear-canear-fastauth-walletnear-fastauth-wallet-modulenear-context@spinfi/browser@spinfi/core@ref-finance/ref-sdk@wpdas/naxios@thenextwallet/next-wallet-selector@rarimo/providers-near@winrey/near-wallet-selector-modal-ui@xlabs-libs/wallet-aggregator-near@xzwiex/perk-swap-core@ample-launchpad/core
8.9.7

1 month ago

8.9.6

1 month ago

8.9.5

3 months ago

8.9.4

3 months ago

8.9.3

4 months ago

8.9.2

4 months ago

8.9.1

5 months ago

8.8.0

6 months ago

8.4.0

9 months ago

8.6.0

7 months ago

8.3.0

9 months ago

8.9.0

5 months ago

8.7.2

6 months ago

8.5.4

7 months ago

8.7.1

6 months ago

8.5.3

8 months ago

8.5.0

9 months ago

8.7.0

7 months ago

8.5.2

8 months ago

8.5.1

9 months ago

8.2.1

10 months ago

8.2.0

11 months ago

8.1.0

1 year ago

8.1.2

11 months ago

8.1.1

12 months ago

8.1.4

11 months ago

8.1.3

11 months ago

7.9.3

1 year ago

7.9.2

1 year ago

7.9.1

1 year ago

7.9.0

1 year ago

8.0.1

1 year ago

8.0.0

1 year ago

8.0.3

1 year ago

8.0.2

1 year ago

7.8.0

1 year ago

7.7.0

1 year ago

7.8.2

1 year ago

7.8.1

1 year ago

7.4.0

1 year ago

7.6.1

1 year ago

7.6.0

1 year ago

7.5.0

1 year ago

7.3.0

1 year ago

7.2.1

1 year ago

7.2.0

2 years ago

7.1.0

2 years ago

6.0.1

2 years ago

7.0.0

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

6.0.0

2 years ago

4.1.0

2 years ago

4.1.1

2 years ago

3.1.0

2 years ago

4.0.0

2 years ago

4.0.0-alpha.1

2 years ago

4.0.0-alpha.0

2 years ago

3.0.2

2 years ago

3.0.2-dev.1

2 years ago

3.0.2-dev.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

3.0.0-alpha.2

2 years ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.0

2 years ago