-
npm install
-
npm run start
-
Go to extensions management page in chrome chrome://extensions/
-
Enable Developer mode
-
Use Load Unpacked and choose path to
wallet/dist
Link to web store - https://chrome.google.com/webstore/detail/penumbra-wallet/lkpmkhpnhknhmibgnmmhdhgdilepfghe/related?hl=uk
- npm install @buf/bufbuild_es_penumbra-zone_penumbra;
Copy/paste ProviderPenumbra class to your project from https://github.com/zpoken/penumbra_dapp/blob/main/src/utils/ProviderPenumbra.ts;
Web3 Browser Detection(To verify if the browser is running Penumbra, copy and paste the code snippet below in the developer console of your web browser)
const checkIsPenumbraInstalled = async () => {
const isInstalled = await isPenumbraInstalled();
return isInstalled;
};
const penumbra = new ProviderPenumbra();
const handleConnect = async () => {
const data = await penumbra.login();
};
penumbra.getStatus()
penumbra.getNotes()
penumbra.getNoteByCommitment({noteCommitment})
penumbra.getAssets()
penumbra.getChainParameters()
penumbra.getTransactionHashes({start_height,end_height})
penumbra.getTransactions({start_height,end_height})
penumbra.getTransactionByHash({txHash})