# sveltekit-wallet-adapter-core

> The core of the wallet adapter is a Svelte Store which exposes methods and properties to run the wallet in your application. This allows to share this data among all components in your application.

Latest version **2.0.3** (published 2023-10-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install sveltekit-wallet-adapter-core
pnpm add sveltekit-wallet-adapter-core
yarn add sveltekit-wallet-adapter-core
bun add sveltekit-wallet-adapter-core
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-10-29 |
| First published | 2023-10-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 5 |
| Unpacked size | 48.5 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Svelte on Solana team |
| Maintainers | svenanders |
| Keywords | svelte, wallet, adapter, wallet-adapter, solana |

## Links

- npm: https://www.npmjs.com/package/sveltekit-wallet-adapter-core
- Repository: https://github.com/portalpayments/svelte-on-solana-wallet-adapter
- Homepage: https://github.com/portalpayments/svelte-on-solana-wallet-adapter#readme
- Issues: https://github.com/portalpayments/svelte-on-solana-wallet-adapter/issues
- npm.io page: https://npm.io/package/sveltekit-wallet-adapter-core

## Dependencies (5)

- [svelte](https://npm.io/package/svelte.md) ^4.2.2
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^5.0.1
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.87.3
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.6.7
- [@solana/wallet-adapter-base](https://npm.io/package/@solana/wallet-adapter-base.md) ^0.9.23

## Recent versions

- 2.0.3 (latest) — 2023-10-29

## README

# `@portal-payments/wallet-adapter-core`

The core of the wallet adapter is a Svelte Store which exposes methods and properties to run the wallet in your application. This allows to share this data among all components in your application.

## Changelog

### 2.1

- Rename the wallet adapters list from 'wallets' to 'walletAdapters'
- Make walletAdapters be a list of adapters rather than writing an extra object with each wallet's 'readyState' duplicated in the top level
- Remove 'wallet' which duplicated 'adapter' and which was not 

### 2.0

- Update to use current gen JavaScript tooling - npm, prettier, etc.
## Install

```shell
npm install @solana/wallet-adapter-base @solana/wallet-adapter-wallets @solana/web3.js @portal-payments/wallet-adapter-core
```

## Usage

Once the `walletStore` is installed, you can use it and subscribe to its methods as an usual Svelte Store:

```html
<script>
  import { walletStore } from '@portal-payments/wallet-adapter-core';
  //...
</script>

{#if $walletStore?.connected}
  <div>My wallet is connected</div>
{/if}
```

## UI

You will need to add some components for your [SvelteKit](https://kit.svelte.dev/) app, for users to connect, disconnect and see their wallet name or addresses. See `@portal-payments/wallet-adapter-ui`.

[Using SvelteKit](https://github.com/svelte-on-solana/wallet-adapter/blob/master/packages/ui/README.md#sveltekit)

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