svelte-wallet Svelte Themes

Svelte Wallet

@rgottleber/svelte-wallet

Single component to connect web3 wallet in Svelte

Install

npm install @rgottleber/svelte-wallet-connect

Usage

<script>
    import { WalletConnect } from '@rgottleber/wallet-connect';
    export let web3Props = {
            provider: null,
            signer: null,
            account: null,
            chainId: null,
            contract: null
        };
</script>

<WalletConnect bind:web3Props />

Other Info

The button includes class="btn" for styling purposes. As well as style variable. <WalletConnect {style} bind:web3Props>

Top categories

Loading Svelte Themes