ProviderKeeper
Overview
ProviderKeeper implements a Signature Provider for Signer protocol library.
Getting Started
Library installation
Install using npm:
npm install @waves/signer @waves/provider-keeperor yarn
yarn add @waves/signer @waves/provider-keeperLibrary initialization
Add library initialization to your app.
For Testnet:
import { Signer } from '@waves/signer'; import { ProviderKeeper } from '@waves/provider-keeper'; const signer = new Signer({ // Specify URL of the node on Testnet NODE_URL: 'https://nodes-testnet.wavesnodes.com', }); const keeper = new ProviderKeeper(); signer.setProvider(keeper);For Mainnet:
import { Signer } from '@waves/signer'; import { ProviderKeeper } from '@waves/provider-keeper'; const signer = new Signer(); const keeper = new ProviderKeeper(); signer.setProvider(keeper);
You can also check if the Keeper Wallet is installed.
Basic example
Now your application is ready to work with Waves Platform. Let's test it by implementing basic functionality.
For example, we could try to authenticate user and transfer funds:
Or invoke some dApp:
For more examples see Signer documentation.
Last updated
Was this helpful?