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

@brillionfi/wallet-infra-sdk

v0.18.9

Published

an sdk for wallet-infra-api

Downloads

234

Readme

🛠️ Wallet Infra SDK

The Wallet Infra SDK provides tools and services for managing wallets, transactions, and assets within the Brillion ecosystem.

💡 Features

  • 👛 Wallet Management: Create, recover, and manage wallets
  • 💸 Transaction Handling: Create, sign, and cancel transactions
  • 🔐 Authentication: Support for multiple authentication providers
  • 🪙 Token Management: Retrieve and manage tokens across different chains
  • ⛓️ Multi-Chain Support: Compatible with various blockchain networks
  • Gas Fee Estimation: Calculate and manage transaction gas fees
  • 📊 Portfolio Tracking: Monitor wallet portfolios across chains
  • 📜 Transaction History: Retrieve and analyze transaction history

🚀 Installation

Install the Wallet Infra SDK into your project with a single command:

npm install @brillionfi/wallet-infra-sdk

⚡ Quick Start

Get started with Wallet Infra SDK in a few steps:

1. Obtain your API key

Visit the Brillion Dashboard to set up your organization and create your first application. This process will give you a unique API key (appId).

2. Initialize the SDK

First, create a new instance of the Wallet Infra SDK:

import { WalletInfra } from "@brillionfi/wallet-infra-sdk";

// Initialize the SDK
const appId = "your-app-id";
const baseUrl = "your-base-url";
const walletInfra = new WalletInfra(appId, baseUrl);

[!NOTE] Make sure to replace "your-app-id" with the actual API key you obtained from the Brillion Dashboard.

3-1. Authenticate user with social login

Create or authenticate a user using your preferred provider:

import { AuthProvider } from "@brillionfi/wallet-infra-sdk";

// Generate authentication URL
const params = {redirectUrl: "your-redirect-url",provider: AuthProvider.Google } ;
const authUrl = await walletInfra.generateAuthUrl(params);

// Redirect user to authUrl for identity verification

// In your redirect endpoint, authenticate the user with the received JWT
walletInfra.authenticateUser(receivedJWT);

Valid AuthProvider value are:

  • GOOGLE
  • DISCORD
  • TWITTER
  • APPLE

3-2. Authenticate user with Walletconnect

Create or authenticate a user using your preferred provider:

import { AuthProvider } from "@brillionfi/wallet-infra-sdk";

// Generate authentication URL
const redirectUrl = "your-redirect-url";
const projectId = "your-wallet-connect-project-id"
const uri = walletInfra.generateWalletConnectUri({
  projectId, 
  redirectUrl,
  requiredNamespaces: {
    eip155: {
      methods: ['personal_sign'],
      chains: ['eip155:1'],
      events: ['connect', 'disconnect'],
    },
  },
});

// listen to onConnectWallet Event  and redirect user to authUrl when it triggered
walletInfra.onConnectWallet((authUrl: string)=>{})

//Show uri to user and ask to connect
// WalletConnectQRCodeModal.open(uri, ()=>{});

// In your redirect endpoint, authenticate the user with the received JWT
walletInfra.authenticateUser(receivedJWT);

4. Create a wallet

After authentication, create a new wallet for the user:

import { IWallet } from "@brillionfi/wallet-infra-sdk";
import {
  WalletTypes,
  WalletFormats,
  PasskeyAuthenticationSchema
} from "@brillionfi/wallet-infra-sdk/dist/models/wallet.models";

const newWallet: IWallet = {
  name: "MyFirstWallet",
  format: WalletFormats.ETHEREUM,
  signer: {
    authentication: PasskeyAuthenticationSchema,
  }
};

await walletInfra.Wallet.createWallet(newWallet);

📚 Documentation

Check out the docs directory for detailed information and examples on using the Wallet Infra SDK.

🌐 Demo

Check out our Simple Wallet Demo to see the Wallet Infra SDK in action. This demo showcases how to manage your organization and applications and demonstrates how to access your application as a wallet user.

🤝 Contributing

We value community contributions and are eager to support your involvement. Here's how you can make a difference:

  • 🚀 Use Wallet Infra SDK in your projects and share your experiences.
  • 🐞 Found a bug? Open an issue. Better yet, submit a pull request with a fix!
  • 💡 Have ideas for new features? We'd love to hear them.
  • 📚 Help improve our documentation for a smoother developer experience.

Committing

We use Commitizen to handle versioning and ensure consistent and meaningful commit messages. Here's how to use it:

npx cz

Or, after installing Commitizen globally:

git cz

💬 Support

If you encounter any issues or have questions, please open an issue or contact the Brillion support team.

📄 License

The Wallet Infra SDK is licensed under the MIT License. For more details, see the LICENSE file.