Catalog npm
Back to packageRELEASE DETAILS

0.1.1-beta.3

npm

@0xsquid/mpp

Cross-chain payment adapter for Tempo using Squid Router

cross-chainmpppaymentssquidtempo
Published23 Mar 2026
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

squid-mpp

Cross-chain payment method for mppx that fulfills MPP charge challenges via Squid Router.

Given a viem Account, it scans all Squid-supported EVM chains for available balances, selects a viable source token, bridges it to the challenge currency on Tempo mainnet, and returns a credential containing the destination tx hash.

Agent on Base (or other chain)  →  Squid bridge  →  Tempo chain  →  MPP recipient

Install

npm install @0xsquid/mpp

Usage

import { Mppx } from "mppx/client"
import { squid } from "@0xsquid/mpp"
import { privateKeyToAccount } from "viem/accounts"

const account = privateKeyToAccount(process.env.PRIVATE_KEY! as `0x${string}`)

const { fetch: mppxFetch } = Mppx.create({
  polyfill: false,
  methods: [
    squid({
      account,
      integratorId: "my-app"
    })
  ]
})

const response = await mppxFetch("https://some-mpp-api.com/resource")
console.log(await response.json())

Options

OptionTypeRequiredDescription
accountAccountyesviem Account — Squid scans all supported chains for available funds
integratorIdstringyesYour Squid integrator ID

How it works

  1. Receives a Tempo charge challenge { amount, currency, recipient } from a 402 response
  2. Queries Squid for all supported tokens across EVM chains and finds ones held by the account
  3. Selects the best source token and constructs a bridge route to the challenge currency on Tempo
  4. Executes the bridge transaction and polls for the destination tx on Tempo (every 5s, up to 5min)
  5. Returns a credential { type: "hash", hash } containing the Tempo destination tx hash

The server verifies the credential by fetching the receipt from Tempo and checking that the Transfer event matches the challenge parameters exactly (token address, recipient, amount).

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
mppx
Environment
{
  "local_name": "mppx",
  "alias": false,
  "peer_metadata": null
}
^0.3.14runtime
viem
Environment
{
  "local_name": "viem",
  "alias": false,
  "peer_metadata": null
}
^2.28.0runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^6.13.5runtime
@0xsquid/sdk
Environment
{
  "local_name": "@0xsquid/sdk",
  "alias": false,
  "peer_metadata": null
}
^2.13.0runtime
release-it
Environment
{
  "local_name": "release-it",
  "alias": false,
  "peer_metadata": null
}
16.3.0development
@0xsquid/squid-types
Environment
{
  "local_name": "@0xsquid/squid-types",
  "alias": false,
  "peer_metadata": null
}
^0.1.217development
@release-it/conventional-changelog
Environment
{
  "local_name": "@release-it/conventional-changelog",
  "alias": false,
  "peer_metadata": null
}
8.0.2-next.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a712bf80264b66bb553414cfc8b0072aa4652dc0",
  "tarball": "https://registry.npmjs.org/@0xsquid/mpp/-/mpp-0.1.1-beta.3.tgz",
  "fileCount": 23,
  "integrity": "sha512-PhVkLZh8/ERRTRozVG9JjJ/pWgqO2fLz3yD0dFSzUPn8DS11Tw21EZ5xKt0h2e11DJ21RU0P1alKTHYuXVhNTg==",
  "signatures": [
    {
      "sig": "MEUCIER/37HHp8X1MLJ4uq8mJS4P6880mN0sbN4XNOvFXFkSAiEA5rcUFnw7t6R16yAPgZBG2ev0pBq/jRgqgjCn8Np0ixo=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 46556
}

Repository

PENDING
0xsquid/squid-mpp

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:8cfc97b419d10f5eb0c2e8cf98582803e9aa85efc74fc4b04a50f6b0f67a9fc8

Other collected versions

0.2.024 Mar0.1.1-beta.423 Mar0.1.1-beta.123 MarView all collected versions →