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

@moveindustries/near-intents-sdk

v0.0.2

Published

Thin SDK: USDT/USDC -> Movement USDCx/MOVE over NEAR Intents 1Click.

Downloads

295

Readme

near-intents-sdk

A thin TypeScript SDK for moving USDT or USDC from a supported origin chain onto Movement (as USDCx or MOVE) over NEAR Intents. It wraps the official 1Click API client and pins the destination to Movement so callers can't accidentally land elsewhere. It orchestrates the transfer — quote, deposit address, status — and never holds keys.

Authentication

A 1Click JWT is optional — the full transfer works without one. Binding quote → deposit address → status tracking all succeed unauthenticated. Verified on mainnet: a Polygon USDC → Movement USDCx transfer completed end-to-end with no token set.

Pass a JWT only to waive NEAR's protocol fee — without one, NEAR auto-injects its appFees and takes a small cut of the swap — and for attributed rate limits instead of anonymous IP-based ones. Obtain one at the Partners Portal and pass it to configure({ jwt }); the SDK does not mint or refresh tokens.

A JWT is a secret, so in a browser don't ship it to the client. Front 1Click with a server-side proxy that injects the token and point the SDK at it with configure({ baseUrl: "/api/oneclick" }) (omit jwt — the proxy holds it). Without baseUrl the SDK calls 1Click directly.

Usage

import { configure, quoteDeposit, prepareDepositTx, submitDeposit, getStatus, isTerminal } from "@moveindustries/near-intents-sdk";

configure({ jwt: process.env.ONE_CLICK_JWT }); // jwt optional; omit configure() entirely to run token-free

// 1. Quote: USDC on Ethereum -> USDCx on Movement. Destination is pinned to Movement.
const res = await quoteDeposit({
  originChain: "ethereum",  // "ethereum" | "polygon" | "tron"
  originAsset: "usdc",      // "usdc" | "usdt"  (tron is usdt-only)
  destinationAsset: "usdcx", // "usdcx" | "move"
  amount: "1000000",        // 1.0 USDC, in the origin asset's smallest units
  recipient: "0xYourMovementAddress",
  refundTo: "0xYourEthereumAddress",
  minAmountOut: "995000",   // required floor in the destination asset's smallest units; throws if the quote's guaranteed output is lower. Pass "0" to opt out.
  // slippageTolerance: 100, // basis points, defaults to 100 (1%); raise it for `destinationAsset: "move"`
});
const { depositAddress, amountOut, deadline } = res.quote;

// 2. (Optional) Build the unsigned deposit transfer; your wallet signs + broadcasts it.
const depositTx = prepareDepositTx("ethereum", "usdc", res);
// EVM: { family: "evm", to, value, data }   Tron: { family: "tron", contractAddress, function, parameter }

// 3. (Optional) After broadcasting, hand 1Click the tx hash to speed up deposit detection.
await submitDeposit(depositAddress!, "0xYourDepositTxHash");

// 4. Read execution status. Poll on your own cadence until isTerminal(status).
const { status } = await getStatus(depositAddress!);
// isTerminal(status) is true for "SUCCESS" | "REFUNDED" | "FAILED"

The SDK never signs, broadcasts, or holds keys — step 2 returns an unsigned transaction for your wallet.

Supported routes

Backed by Movement's own solver: origins Polygon, Ethereum, Tron (USDC + USDT; Tron is USDT-only) → USDCx or MOVE on Movement.

Install

npm i @moveindustries/near-intents-sdk

Published manually by a maintainer: bump the version, update CHANGELOG.md, then npm publish (which builds via prepublishOnly). See CHANGELOG.md for changes.

Tests

  • npm test — unit only, offline, no secrets.
  • npm run test:live:noauth — adds a live dry quote against the real API (no JWT).
  • npm run test:live:auth — adds an authenticated quote; requires ONE_CLICK_JWT in .env (fails if unset).