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

@polareum/waas-sdk

v3.0.0-beta

Published

TypeScript SDK for Polareum WAAS Server

Readme

Polareum WAAS SDK (TypeScript)

@polareum/waas-sdk is the TypeScript/Node.js client library for Polareum WAAS Server. It exposes a typed API that follows the server path structure, so your code can call wallets, admin, network, EVM, UTXO, and supported blockchain endpoints without manually building HTTP requests.

Installation

npm install @polareum/waas-sdk

Basic Usage

import { WaasClient } from '@polareum/waas-sdk';

const options = {
  baseUrl: 'https://waas.polareum.com',
  apiKey: 'your-api-key',
};

const client = new WaasClient(options);

const wallets = await client.wallets.listWallets({
  Page: 1,
  PageSize: 20,
});

const wallet = await client.wallets.generate.randomeKey({
  body: {
    name: 'main-wallet',
    exportable: false,
  },
});

API Groups

The root client is organized by WAAS API path:

client.admin.wallets
client.admin.networks
client.wallets
client.wallets.generate
client.wallets.import
client.networks
client.evm
client.evm.erc20
client.evm.erc721
client.evm.erc1155
client.evm.burnable
client.evm.pausable
client.utxo
client.cardano
client.near
client.polkadot
client.ripple
client.solana
client.stellar
client.sui
client.ton
client.tron

Admin Examples

const adminWallets = await client.admin.wallets.listWallets({
  Page: 1,
  PageSize: 50,
  ApiKeyId: undefined,
  Name: undefined,
  PartialName: undefined,
  OrderBy: undefined,
});

const networks = await client.admin.networks.listNetworks({
  Page: 1,
  PageSize: 50,
  Name: undefined,
  PartialName: undefined,
  OrderBy: undefined,
});

Wallet Examples

const importedWallet = await client.wallets.import.privateKey({
  body: {
    name: 'imported-wallet',
    privateKeyHex: '0x...',
    chainCodeHex: undefined,
    exportable: false,
  },
});

const address = await client.wallets.getAddress({
  WalletReference: 'main-wallet',
  NetworkReference: 'ethereum-mainnet',
  StoreAddress: true,
});

const exported = await client.wallets.export({
  ref: 'main-wallet',
});

EVM Examples

const nativeBalance = await client.evm.balanceOf({
  NetworkReference: 'ethereum-mainnet',
  Address: '0x1234...',
});

const transfer = await client.evm.transfer({
  body: {
    networkReference: 'ethereum-mainnet',
    from: 'main-wallet',
    toAddress: '0xabcd...',
    amount: 0.1,
  },
});

const erc20Balance = await client.evm.erc20.balanceOf({
  NetworkReference: 'ethereum-mainnet',
  TokenAddress: '0xtoken...',
  Address: '0x1234...',
});

UTXO Example

const utxoBalance = await client.utxo.balanceOf({
  NetworkReference: 'bitcoin-mainnet',
  Address: 'bc1...',
});

const tx = await client.utxo.transfer({
  body: {
    networkReference: 'bitcoin-mainnet',
    from: 'main-wallet',
    toAddress: 'bc1receiver...',
    amount: 0.001,
  },
});

Notes

  • Each method includes generated JSDoc comments for endpoint intent and parameter/response models.
  • The API key is sent in the X-API-Key header for every request.
  • All query parameter names are preserved exactly as defined in Swagger (for example: Page, WalletReference, ref).
  • The SDK throws WaasHttpError for non-success responses.