npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@credenza3/core-web-evm-provider-ext

v0.0.1

Published

A standalone EVM provider implementation for Credenza3 authentication that implements the EIP-1193 standard.

Downloads

17

Readme

Credenza EVM Provider

A standalone EVM provider implementation for Credenza3 authentication that implements the EIP-1193 standard.

Installation

  npm i @credenza3/core-web-evm-provider-ext

Overview

CredenzaProvider is a custodial EVM provider that uses Credenza3's backend for key management and transaction signing. It implements the standard Eip1193Provider interface, making it compatible with ethers.js and other Web3 libraries.

Usage

Basic Setup

import CredenzaProvider from '@credenza3/core-web-evm-provider-ext'


const provider = new CredenzaProvider({
  rpcUrl: '',
  accessToken: 'your-credenza-access-token',
  env: 'staging', // 'prod' | 'staging'
})

Using with ethers.js

import { BrowserProvider } from 'ethers'

const ethersProvider = new BrowserProvider(provider)
const signer = await ethersProvider.getSigner()

const address = await signer.getAddress()

const tx = await signer.sendTransaction({
  to: '0x...',
  value: ethers.parseEther('0.1'),
})

API Reference

Constructor

  new CredenzaProvider(params: {
    rpcUrl: string
    accessToken?: string
    env: string
  })

Parameters:

  • rpcUrl - RPC URL of the blockchain network
  • accessToken - Credenza3 authentication token
  • env - Environment ('prod' | 'staging')

Methods

setAccessToken(accessToken: string)

Updates the access token.

provider.setAccessToken('new-access-token')

setRpcUrl(rpcUrl: string): Promise<void>

Switches to a different blockchain network.

await provider.setRpcUrl('https://eth.llamarpc.com')

getRpcUrl(): string

Returns the current RPC URL.

const rpcUrl = provider.getRpcUrl()

listAccounts(): Promise<string[]>

Returns the list of accounts.

const accounts = await provider.listAccounts()

getRpcProvider(): Promise<JsonRpcProvider>

Returns the underlying ethers JsonRpcProvider.

const rpcProvider = await provider.getRpcProvider()

request(args: { method: string; params?: unknown[] }): Promise<any>

Implements EIP-1193 request method.

const accounts = await provider.request({ method: 'eth_accounts' })

const signature = await provider.request({
  method: 'personal_sign',
  params: [message, address],
})

const txHash = await provider.request({
  method: 'eth_sendTransaction',
  params: [{ to: '0x...', value: '0x...' }],
})

Supported RPC Methods

Account Methods:

  • eth_requestAccounts / eth_accounts
  • personal_sign / eth_sign
  • eth_signTypedData / eth_signTypedData_v4

Transaction Methods:

  • eth_signTransaction
  • eth_sendTransaction / eth_sendRawTransaction

Standard Methods: All other standard Ethereum JSON-RPC methods are forwarded to the RPC provider.

Example

import { CredenzaProvider } from '@packages/evm-provider'
import { BrowserProvider, parseEther } from 'ethers'

const provider = new CredenzaProvider({
  rpcUrl: 'https://eth.llamarpc.com',
  accessToken: 'your-token',
  env: 'prod',
})

const accounts = await provider.listAccounts()

const ethersProvider = new BrowserProvider(provider)
const signer = await ethersProvider.getSigner()

const tx = await signer.sendTransaction({
  to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
  value: parseEther('0.01'),
})

await tx.wait()