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

uniport-sdk

v0.0.4

Published

Cross-chain payment SDK - Accept crypto payments from any blockchain

Downloads

510

Readme

Uniport SDK

npm version License: MIT

Cross-chain payment SDK for accepting crypto payments into a destination token you choose.

GitHub Repository

Installation

npm install uniport-sdk

Quick Start

import { UniportButton } from 'uniport-sdk'

<UniportButton
  recipient="0x..."
  destinationToken="arbitrumUSDC"
  onSuccess={(result) => console.log('Paid', result.txHash)}
/>

The SDK uses Uniport's hosted backend. No API key or backend URL is required for standard integration.

UniportButton Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | recipient | string | Yes | Recipient wallet address on the destination chain | | destinationToken | string | Yes | Destination token name from the supported token table | | amount | string | No | Fixed amount in destination token units | | refundAddress | string | No | Source-chain refund address to prefill in the modal | | label | string | No | Button label | | variant | 'default' \| 'compact' \| 'outline' | No | Button style | | disabled | boolean | No | Disable the button | | className | string | No | Custom CSS class | | theme | 'light' \| 'dark' | No | Modal theme | | onSuccess | (result) => void | No | Called when payment completes | | onError | (error) => void | No | Called when payment fails | | onOpenChange | (open) => void | No | Called when modal opens or closes |

If refundAddress is omitted, the payer can enter it inside the modal. The refund address is on the source chain the payer sends from.

Supported Token Naming

Use the canonical token names below as destinationToken. Examples:

  • arbitrumUSDC
  • ethereumUSDC
  • solanaSOL
  • bitcoinBTC

Legacy short aliases such as arbUSDC and ethUSDC are still accepted for backward compatibility, but the canonical names below are the stable prop names to document and ship against.

| Chain | Token Name | Symbol | |-------|------------|--------| | Sui | suiSUI | SUI | | Sui | suiUSDC | USDC | | Ethereum | ethereumETH | ETH | | Ethereum | ethereumUSDC | USDC | | Ethereum | ethereumUSDT | USDT | | Ethereum | ethereumWBTC | WBTC | | Ethereum | ethereumDAI | DAI | | Ethereum | ethereumAAVE | AAVE | | Ethereum | ethereumUNI | UNI | | Ethereum | ethereumLINK | LINK | | Ethereum | ethereumSHIB | SHIB | | Ethereum | ethereumPEPE | PEPE | | Ethereum | ethereumTURBO | TURBO | | Ethereum | ethereumSAFE | SAFE | | Solana | solanaSOL | SOL | | Solana | solanaUSDC | USDC | | Solana | solanaUSDT | USDT | | Solana | solanaTRUMP | TRUMP | | Solana | solanaWIF | $WIF | | Solana | solanaMELANIA | MELANIA | | Bitcoin | bitcoinBTC | BTC | | Arbitrum | arbitrumETH | ETH | | Arbitrum | arbitrumUSDC | USDC | | Arbitrum | arbitrumUSDT | USDT | | Arbitrum | arbitrumARB | ARB | | Arbitrum | arbitrumGMX | GMX | | Base | baseETH | ETH | | Base | baseUSDC | USDC | | Base | baseCbBTC | cbBTC | | Base | baseBRETT | BRETT | | Optimism | optimismETH | ETH | | Optimism | optimismUSDC | USDC | | Optimism | optimismUSDT | USDT | | Optimism | optimismOP | OP | | Polygon | polygonPOL | POL | | Polygon | polygonUSDC | USDC | | Polygon | polygonUSDT | USDT | | Avalanche | avalancheAVAX | AVAX | | Avalanche | avalancheUSDC | USDC | | Avalanche | avalancheUSDT | USDT | | BNB Chain | bscBNB | BNB | | BNB Chain | bscUSDC | USDC | | BNB Chain | bscUSDT | USDT | | TON | tonTON | TON | | TON | tonUSDT | USDT | | Tron | tronTRX | TRX | | Tron | tronUSDT | USDT | | NEAR | nearNEAR | wNEAR | | NEAR | nearUSDC | USDC | | NEAR | nearUSDT | USDT | | Cardano | cardanoADA | ADA | | XRP Ledger | xrpXRP | XRP | | Dogecoin | dogecoinDOGE | DOGE | | Litecoin | litecoinLTC | LTC | | Bitcoin Cash | bitcoinCashBCH | BCH | | Aptos | aptosAPT | APT | | Starknet | starknetSTRK | STRK | | Berachain | berachainBERA | BERA | | Zcash | zcashZEC | ZEC |

Core Exports

The package exports:

  • UniportButton
  • UniportModal
  • useUniportPayment
  • getQuote
  • submitDepositTx
  • getExecutionStatus
  • token constants such as arbitrumUSDC, ethereumUSDC, and solanaSOL

Errors

Backend request failures are surfaced as typed UniportError instances from the core module. Timeouts, quote failures, deposit submission failures, and status failures are normalized by the SDK before they reach your UI.

License

MIT