@portal-payments/wallet-adapter-core
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

@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.

Install

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

Use

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

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

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

UI

To complete the setup you will need to add some UI components which will provide the full experience to connect, disconnect and visualize address to your SvelteKit appThe UI packages offer different implementations for Solana and Anchor.

Using SvelteKit

Package Sidebar

Install

npm i @portal-payments/wallet-adapter-core

Weekly Downloads

1

Version

2.0.3

License

Apache-2.0

Unpacked Size

48.7 kB

Total Files

19

Last publish

Collaborators

  • mikemaccana