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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bankofai/agent-wallet

v2.4.0

Published

Universal multi-chain secure signing SDK for AI agents

Readme

agent-wallet (TypeScript)

License Node

Universal multi-chain signing SDK for AI agents — TypeScript implementation.

Install

npm install @bankofai/agent-wallet
# or
pnpm add @bankofai/agent-wallet

Includes CLI (agent-wallet), EVM and TRON support.

Quick Start

import { resolveWallet } from "@bankofai/agent-wallet";

const wallet = await resolveWallet({ network: "tron:nile" });
const signature = await wallet.signMessage(new TextEncoder().encode("hello"));

resolveWallet automatically finds your wallet config in ~/.agent-wallet (or AGENT_WALLET_DIR).

Public API

import {
  resolveWallet,          // → Wallet (one-shot)
  resolveWalletProvider,  // → ConfigWalletProvider | EnvWalletProvider
  ConfigWalletProvider,   // file-backed provider (local_secure / raw_secret)
  EnvWalletProvider,      // env-var-backed provider (AGENT_WALLET_PRIVATE_KEY)
} from "@bankofai/agent-wallet";

resolveWallet

Returns a ready-to-sign Wallet for the given network:

const wallet = await resolveWallet({ network: "eip155:1" });
const sig = await wallet.signTransaction({ to: "0x...", value: 0 });

resolveWalletProvider

Returns either ConfigWalletProvider or EnvWalletProvider based on what's available:

const provider = resolveWalletProvider({ network: "eip155:1" });

// Get the active wallet
const wallet = await provider.getActiveWallet();

// Or a specific wallet (ConfigWalletProvider only)
const wallet2 = await provider.getWallet("my_wallet", "tron:nile");

Provider resolution order

  1. Password available (from runtime_secrets.json or AGENT_WALLET_PASSWORD) → ConfigWalletProvider
  2. wallets_config.json exists with wallets → ConfigWalletProvider
  3. Otherwise → EnvWalletProvider (reads AGENT_WALLET_PRIVATE_KEY / AGENT_WALLET_MNEMONIC)

Wallet Interface

interface Wallet {
  getAddress(): Promise<string>;
  signRaw(rawTx: Uint8Array): Promise<string>;
  signTransaction(payload: Record<string, unknown>): Promise<string>;
  signMessage(msg: Uint8Array): Promise<string>;
}

interface Eip712Capable {
  signTypedData(data: Record<string, unknown>): Promise<string>;
}

Both EVM and TRON network-specific signers implement Wallet + Eip712Capable.

Network Routing

| Network string | Adapter | Mnemonic derivation | |---|---|---| | eip155 or eip155:<chainId> | EVM | m/44'/60'/0'/0/{index} | | tron or tron:<chain> | TRON | m/44'/195'/0'/0/{index} |

Environment Variables

| Variable | Description | |---|---| | AGENT_WALLET_DIR | Wallet directory (default ~/.agent-wallet) | | AGENT_WALLET_PASSWORD | Password for local_secure wallets | | AGENT_WALLET_PRIVATE_KEY | Env fallback private key (hex) | | AGENT_WALLET_MNEMONIC | Env fallback mnemonic phrase | | AGENT_WALLET_MNEMONIC_ACCOUNT_INDEX | Mnemonic account index (default 0) |

Examples

Development

pnpm install
pnpm test

License

MIT — BankOfAI