Socket
Book a DemoInstallSign in
Socket

@penumbra-zone/client

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@penumbra-zone/client

Package for connecting to any Penumbra extension, including Prax.

29.0.0
latest
npmnpm
Version published
Weekly downloads
412
1.98%
Maintainers
3
Weekly downloads
 
Created
Source

@penumbra-zone/client

This package allows developers to create dApps that connect to Penumbra providers and query the Penumbra blockchain.

You can check this package in action in the NextJS example repo or read the Architecture Decision Record (ADR-006) describing the idea behind this package.

A simple example

import { PenumbraClient } from '@penumbra-zone/client';
import { ViewService } from '@penumbra-zone/protobuf';

const penumbra = createPenumbraClient();

// Get the `Record<string, PenumbraProvider>` – an object with keys as
// provider origin URIs and values as PenumbraProvider instances.
const providers = PenumbraClient.getProviders();

// Choose a provider to connect to
const someProviderOrigin: keyof providers = Object.keys(providers)[0];

// Get the provider's manifest – info about this provider with name, description, icons, etc.
const manifest = await penumbra.getProviderManifest(someProviderOrigin);
console.log(manifest.name); // e.g. "Prax wallet"

// Connect to the provider – user must approve the origin
await penumbra.connect(someProviderOrigin);

// Get a view service – a private query service to access the user's data from the provider
const address0 = penumbra.service(ViewService).getAddressByIndex({ account: 0 });

FAQs

Package last updated on 16 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.