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

@awakentax/crypto-tax

v0.1.3

Published

Tax SDK for Awaken

Downloads

413

Readme

@awakentax/crypto-tax

Tax SDK for Awaken - Easily integrate crypto tax calculation links into your application.

Step 1: Get an API Key

To use this SDK, you'll need an API key. Please contact [email protected] to obtain your API key.

Installation

npm install @awakentax/crypto-tax

or with yarn:

yarn add @awakentax/crypto-tax

Usage

Initialize the SDK

First, import and initialize the SDK with your API key:

import { CryptoTaxSDK } from '@awakentax/crypto-tax';

const cryptotax = new CryptoTaxSDK({
  apiKey: 'your-api-key-here'
});

Get the Link URL

Create a link by providing wallet addresses:

import type { CreateLinkRequest } from '@awakentax/crypto-tax';

const request: CreateLinkRequest = {
  wallets: [
    {
      address: '0x1234567890123456789012345678901234567890',
      name: 'My Main Wallet' // Optional
    },
    {
      address: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd'
    }
  ]
};

const response = await cryptotax.createLink(request);
console.log('Link URL:', response.url);
console.log('Link Code:', response.code);

Open the Link

Once you have the URL, you can open it in a browser or redirect your users:

// In a browser environment
window.location.href = response.url;

// Or open in a new tab/window
window.open(response.url, '_blank');

// In a Node.js environment, you can log it or use a library like 'open'
console.log('Open this URL:', response.url);

Complete Example

import { CryptoTaxSDK } from '@awakentax/crypto-tax';
import type { CreateLinkRequest } from '@awakentax/crypto-tax';

async function createTaxLink() {
  // Initialize SDK
  const cryptotax = new CryptoTaxSDK({
    apiKey: process.env.AWAKEN_API_KEY!,
  });

  // Prepare wallet data
  const request: CreateLinkRequest = {
    wallets: [
      {
        address: '0x1234567890123456789012345678901234567890',
        name: 'My Main Wallet'
      }
    ]
  };

  try {
    // Create the link
    const { url, code } = await cryptotax.createLink(request);
    
    // Open the link (browser example)
    window.location.href = url;
    
    // Or redirect users to the tax calculation page
    // window.open(url, '_blank');
  } catch (error) {
    console.error('Failed to create link:', error);
  }
}

What It Looks Like

When you open up the URL we generate for you, it will look something like this. If the user doesn't have an Awaken account, it will prompt them to create one and then automatically add the wallets for them. If they already have an account, it'll be a one click add for them to link these wallets to their existing Awaken account.

Alternative: Using cURL (Without SDK)

If you prefer not to use the SDK, you can make direct API calls using cURL:

Create Partner Account Link

curl -X POST https://api.link.awaken.tax/api/links \
  -H "Content-Type: application/json" \
  -H "x-api-key: your-api-key-here" \
  -d '{
    "wallets": [
      {
        "address": "0x1234567890123456789012345678901234567890",
        "name": "My Wallet"
      },
      {
        "address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd"
      }
    ]
  }'

Request Body:

  • wallets (array, required): Array of wallet objects
    • address (string, required): Wallet address
    • name (string, optional): Wallet name

Response:

  • Success (201): Returns code and url for the created link
  • Success (200): Returns existing link if wallet hash already exists
  • Error (400): Validation error with details
  • Error (404): Partnership not found
  • Error (500): Internal server error

Example Response:

{
  "code": "abc123xyz",
  "url": "https://awaken.tax/link?code=abc123xyz"
}

API Reference

CryptoTaxSDK

Constructor

new CryptoTaxSDK(options: SDKOptions)

Options:

  • apiKey (string, required): Your API key
  • baseUrl (string, optional): Base URL for the API. Defaults to https://api.link.awaken.tax

Methods

createLink(request: CreateLinkRequest): Promise<CreateLinkResponse>

Creates a new tax calculation link.

Parameters:

  • request.wallets: Array of wallet objects with address (required) and optional name

Returns:

  • code: Unique code for the link
  • url: Full URL to access the tax calculation interface