Skip to content

a package that makes easier to interact with wallets on cardano

License

Notifications You must be signed in to change notification settings

Abaidullah-Zahid/cardano-wallet-interface

 
 

Repository files navigation

cardano-wallet-interface

brought to you by Harmonic Pool

Thank you

This softweare exists thanks to Harmonic delegators an supporters

How can I support?

  • delegate ADA to Harmonic Pool
  • donate ADA to : addr1qxm09exmyl04yhh67rvvmp2zauq32p8g7v60wtv03ved7t8h2y992ly7znq5q8ckurcpum0dc8kaunpkysnlnzzhw0pqd875p8
  • contribute building this repository
  • contribute building a greather Cardano with any repository of Harmonic Pool

Contents

Prerequisites

make sure to enable web-assembly if not configured by default.

You may find some help at documentation/known_issues/allowing_webassembly.md

Installation

make sure you have a folder called node_modules in your project

run the following in your project directory

npm install https://github.com/HarmonicPool/cardano-wallet-interface

supported wallets

here's a list of supported wallet, if you notice a Cardano wallet that support dApp connector is missing, feel free to send a mail here

Usage

basic delegation functionality

using Nami
/*... other imports ...*/
import Wallet, { WalletName } from "@harmonicpool/cardano-wallet-interface";

/*...*/

if( Wallet.has( WalletName.Nami ) )
{
    if( !Wallet.isEnabled( WalletName.Nami ) )
    {
        Wallet.enable( WalletName.Nami )
        .then(
            () => {
                Wallet.Nami.delegateTo(
                    "<your pool id>",
                    "<your blockforst api key>"
                );
            }
        );
    }
    else
    {
        Wallet.Nami.delegateTo(
            "<your pool id>",
            "<your blockforst api key>"
        );
    }
}

/*...*/

other examples

check the documentation/examples folder for more

Documentation

a more in depth documentation can be found in the documentation folder

Docs Index

Support Harmonic

Any code correction you may find useful is a great form of support for all the Cardano community, you can send them to the Harmonic Pool mail

other great forms to show support are:

addr1qxyryaacjdwau64wyf5truhq2akuc50dunrzlpj82pcjjkwpcdn8a48cpt55dp9d7wc8khg8aksheu62u4nhrdtgddeqd4r83d

any of the above will be really appreciated <3

About

a package that makes easier to interact with wallets on cardano

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%