cardano-wallet-interface 1.1.0
Install from the command line:
Learn more about npm packages
$ npm install @HarmonicPool/cardano-wallet-interface@1.1.0
Install via package.json:
"@HarmonicPool/cardano-wallet-interface": "1.1.0"
About this version
make sure to enable web-assembly if not configured by default.
You may find some help at documentation/known_issues/allowing_webassembly.md
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
/*... other imports ...*/
import Wallet from "@harmonicpool/cardano-wallet-interface";
/*...*/
if( Wallet.hasNami() )
{
if( !Wallet.namiHasBeenEnabled )
{
Wallet.enableNami()
.then(
() => {
Wallet.Nami.delegateTo(
"<your pool id>",
"<your blockforst api key>"
);
}
);
}
else
{
Wallet.Nami.delegateTo(
"<your pool id>",
"<your blockforst api key>"
);
}
}
/*...*/
/*... other imports ...*/
import Wallet from "@harmonicpool/cardano-wallet-interface";
/*...*/
if( Wallet.hasCCVault() )
{
if( !Wallet.ccvaultHasBeenEnabled )
{
Wallet.enableCCVault()
.then(
() => {
Wallet.CCVault.delegateTo(
"<your pool id>",
"<your blockforst api key>"
);
}
);
}
else
{
Wallet.CCVault.delegateTo(
"<your pool id>",
"<your blockforst api key>"
);
}
}
/*...*/
check the documentation/examples folder for more
a more in depth documentation can be found in the documentation folder
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:
- delegating to Harmonic Pool
- donating ADA to the following address that delegates to Harmonic:
addr1qxyryaacjdwau64wyf5truhq2akuc50dunrzlpj82pcjjkwpcdn8a48cpt55dp9d7wc8khg8aksheu62u4nhrdtgddeqd4r83d
any of the above will be really appreciated <3