{"_id":"@0xsquid/mpp","_rev":"5-22a39c1a569bf2bf448d15b7bb7ed3ad","name":"@0xsquid/mpp","dist-tags":{"latest":"0.2.0","beta":"0.1.1-beta.4"},"versions":{"0.1.1-beta.1":{"name":"@0xsquid/mpp","version":"0.1.1-beta.1","_id":"@0xsquid/mpp@0.1.1-beta.1","maintainers":[{"name":"0xraj","email":"rajat@0xsquid.com"},{"name":"0xsubs","email":"subs@squidrouter.com"}],"dist":{"shasum":"14d231ecebe896d38356ed7fc194ddfd61376e7a","tarball":"https://registry.npmjs.org/@0xsquid/mpp/-/mpp-0.1.1-beta.1.tgz","fileCount":11,"integrity":"sha512-aodcfwhfGbGprEsuhQkHwyMXCJ8WGA6VoNWra1lLFgUra01qjwWJz7jl1gs35f77iYWKuiae2mOIS+W2kSSVrg==","signatures":[{"sig":"MEQCIA4tFvPlB5v5CmSlPu2dqdmZrt4zO6K7GF1r/87dtTDKAiAlkfxFbswSh8P8Mo9YCIeRjN/NB1YW+LXYX+r4oxLILA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33545},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"d99d869120cfe809cf9d6074d571ded612d0e699","scripts":{"build":"tsc","release":"release-it","release:ci":"release-it --ci","release:dry":"release-it --dry-run","release:pre":"release-it --preRelease=beta"},"_npmUser":{"name":"0xraj","email":"rajat@0xsquid.com"},"release-it":{"git":{"tagName":"v${version}","pushRepo":"https://github.com/0xsquid/squid-mpp.git","commitMessage":"chore: branch cut release for squid-mpp v${version}","requireBranch":"release/*"},"npm":{"publish":false},"github":{"release":true,"tokenRef":"GITHUB_AUTH"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":{"name":"conventionalcommits"}}}},"_npmVersion":"10.8.2","description":"Cross-chain payment method for [mppx](https://github.com/tempo-xyz/mppx) that fulfills [MPP](https://docs.tempo.xyz) `charge` challenges via [Squid Router](https://squidrouter.com).","directories":{},"_nodeVersion":"20.20.1","dependencies":{"mppx":"^0.3.14","viem":"^2.28.0","ethers":"^6.13.5","@0xsquid/sdk":"^2.13.0"},"_hasShrinkwrap":false,"devDependencies":{"release-it":"16.3.0","@0xsquid/squid-types":"^0.1.217","@release-it/conventional-changelog":"8.0.2-next.0"},"_npmOperationalInternal":{"tmp":"tmp/mpp_0.1.1-beta.1_1774291367831_0.7373227193504219","host":"s3://npm-registry-packages-npm-production"}},"0.1.1-beta.3":{"name":"@0xsquid/mpp","version":"0.1.1-beta.3","keywords":["squid","mpp","tempo","cross-chain","payments"],"author":{"name":"0xsquid"},"license":"MIT","_id":"@0xsquid/mpp@0.1.1-beta.3","maintainers":[{"name":"0xraj","email":"rajat@0xsquid.com"},{"name":"0xsubs","email":"subs@squidrouter.com"}],"homepage":"https://github.com/0xsquid/squid-mpp#readme","bugs":{"url":"https://github.com/0xsquid/squid-mpp/issues"},"dist":{"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},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"faa18ff40f3caf89a3a616de01854fe89fb47513","scripts":{"build":"tsc","release":"release-it","release:ci":"release-it --ci","release:dry":"release-it --dry-run","release:pre":"release-it --preRelease=beta"},"_npmUser":{"name":"0xraj","email":"rajat@0xsquid.com"},"release-it":{"git":{"tagName":"v${version}","pushRepo":"https://github.com/0xsquid/squid-mpp.git","commitMessage":"chore: branch cut release for squid-mpp v${version}","requireBranch":"release/*"},"npm":{"publish":false},"github":{"release":true,"tokenRef":"GITHUB_AUTH"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":{"name":"conventionalcommits"}}}},"repository":{"url":"git+https://github.com/0xsquid/squid-mpp.git","type":"git"},"_npmVersion":"10.8.2","description":"Cross-chain payment adapter for Tempo using Squid Router","directories":{},"_nodeVersion":"20.20.1","dependencies":{"mppx":"^0.3.14","viem":"^2.28.0","ethers":"^6.13.5","@0xsquid/sdk":"^2.13.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"release-it":"16.3.0","@0xsquid/squid-types":"^0.1.217","@release-it/conventional-changelog":"8.0.2-next.0"},"_npmOperationalInternal":{"tmp":"tmp/mpp_0.1.1-beta.3_1774292109706_0.37547682925290804","host":"s3://npm-registry-packages-npm-production"}},"0.1.1-beta.4":{"name":"@0xsquid/mpp","version":"0.1.1-beta.4","keywords":["squid","mpp","tempo","cross-chain","payments"],"author":{"name":"0xsquid"},"license":"MIT","_id":"@0xsquid/mpp@0.1.1-beta.4","maintainers":[{"name":"0xraj","email":"rajat@0xsquid.com"},{"name":"0xsubs","email":"subs@squidrouter.com"}],"homepage":"https://github.com/0xsquid/squid-mpp#readme","bugs":{"url":"https://github.com/0xsquid/squid-mpp/issues"},"dist":{"shasum":"c12d289ca6b7258b3af6917d0684b5e9fd710d16","tarball":"https://registry.npmjs.org/@0xsquid/mpp/-/mpp-0.1.1-beta.4.tgz","fileCount":23,"integrity":"sha512-ARoyYiB5KaxpiWO63gwCiFvMfhflNJd7rvAJJlGHf7Chs+G+BXt4oRrhjiqhaOoZ0r6BdWwLEbSW67LqCVYtpg==","signatures":[{"sig":"MEUCIHDSG3N+l4HRUXhXALPTdkIloYatMonVHH2XPTi7xxllAiEAjepn3sk03zyeJ5ZEkbsuky2r54DAFFjzLV756RQbGhk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46663},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"4e485ab7f6a8413c00a9865e1f0311d5a779c2f5","scripts":{"build":"tsc","release":"release-it","release:ci":"release-it --ci","release:dry":"release-it --dry-run","release:pre":"release-it --preRelease=beta"},"_npmUser":{"name":"0xraj","email":"rajat@0xsquid.com"},"release-it":{"git":{"tagName":"v${version}","pushRepo":"https://github.com/0xsquid/squid-mpp.git","commitMessage":"chore: branch cut release for squid-mpp v${version}","requireBranch":"release/*"},"npm":{"publish":false},"github":{"release":true,"tokenRef":"GITHUB_AUTH"},"plugins":{"@release-it/conventional-changelog":{"infile":"CHANGELOG.md","preset":{"name":"conventionalcommits"}}}},"repository":{"url":"git+https://github.com/0xsquid/squid-mpp.git","type":"git"},"_npmVersion":"10.8.2","description":"Cross-chain payment adapter for Tempo using Squid Router","directories":{},"_nodeVersion":"20.20.1","dependencies":{"mppx":"^0.3.14","viem":"^2.28.0","ethers":"^6.13.5","@0xsquid/sdk":"^2.13.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"release-it":"16.3.0","@0xsquid/squid-types":"^0.1.217","@release-it/conventional-changelog":"8.0.2-next.0"},"_npmOperationalInternal":{"tmp":"tmp/mpp_0.1.1-beta.4_1774295331034_0.9723266460722673","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@0xsquid/mpp","version":"0.2.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"description":"Cross-chain payment adapter for Tempo using Squid Router","repository":{"type":"git","url":"git+https://github.com/0xsquid/squid-mpp.git"},"keywords":["squid","mpp","tempo","cross-chain","payments"],"author":{"name":"0xsquid"},"license":"MIT","scripts":{"build":"tsc","release":"release-it","release:pre":"release-it --preRelease=beta","release:ci":"release-it --ci","release:dry":"release-it --dry-run"},"dependencies":{"@0xsquid/sdk":"2.13.0","ethers":"^6.13.5","mppx":"^0.3.14","viem":"^2.28.0"},"devDependencies":{"@0xsquid/squid-types":"0.1.219","@release-it/conventional-changelog":"8.0.2-next.0","release-it":"16.3.0"},"publishConfig":{"access":"public"},"release-it":{"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"conventionalcommits"},"infile":"CHANGELOG.md"}},"github":{"release":true,"tokenRef":"GITHUB_AUTH"},"git":{"tagName":"v${version}","pushRepo":"https://github.com/0xsquid/squid-mpp.git","commitMessage":"chore: branch cut release for squid-mpp v${version}","requireBranch":"release/*"},"npm":{"publish":false}},"_id":"@0xsquid/mpp@0.2.0","gitHead":"e70e6ef15fe4d29d0d92dc392c12fa3f7bc59cfc","bugs":{"url":"https://github.com/0xsquid/squid-mpp/issues"},"homepage":"https://github.com/0xsquid/squid-mpp#readme","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-uv9hxk2LZ+NWZWDYaCcp4a4JY20A0rMOSRhhperyGTcUcEghZakFYvhuGx6cPDjbX6xIkhDo2Dyrz+oiKArYog==","shasum":"b1855f5de7a9acfeb494fe9570046db819991134","tarball":"https://registry.npmjs.org/@0xsquid/mpp/-/mpp-0.2.0.tgz","fileCount":23,"unpackedSize":47635,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDlR7d1/bLHWqKu18TSnKhdpbuzFdFo6pM3OZTh/2fzZwIgJXQtF2v7xxQ9+9PHrNYiZWDSEuAdZhvIRDFxarUiBu4="}]},"_npmUser":{"name":"0xraj","email":"rajat@0xsquid.com"},"directories":{},"maintainers":[{"name":"0xraj","email":"rajat@0xsquid.com"},{"name":"0xsubs","email":"subs@squidrouter.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mpp_0.2.0_1774393851164_0.08245473403926828"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-23T18:42:47.830Z","modified":"2026-03-24T23:10:51.478Z","0.1.1-beta.1":"2026-03-23T18:42:47.971Z","0.1.1-beta.3":"2026-03-23T18:55:09.872Z","0.1.1-beta.4":"2026-03-23T19:48:51.173Z","0.2.0":"2026-03-24T23:10:51.327Z"},"description":"Cross-chain payment adapter for Tempo using Squid Router","maintainers":[{"name":"0xraj","email":"rajat@0xsquid.com"},{"name":"0xsubs","email":"subs@squidrouter.com"}],"readme":"# squid-mpp\n\nCross-chain payment method for [mppx](https://github.com/tempo-xyz/mppx) that fulfills [MPP](https://docs.tempo.xyz) `charge` challenges via [Squid Router](https://squidrouter.com).\n\nGiven 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.\n\n```\nAgent on Base (or other chain)  →  Squid bridge  →  Tempo chain  →  MPP recipient\n```\n\n## Install\n\n```bash\nnpm install @0xsquid/mpp\n```\n\n## Usage\n\n```ts\nimport { Mppx } from \"mppx/client\"\nimport { squid } from \"@0xsquid/mpp\"\nimport { privateKeyToAccount } from \"viem/accounts\"\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY! as `0x${string}`)\n\nconst { fetch: mppxFetch } = Mppx.create({\n  polyfill: false,\n  methods: [\n    squid({\n      account,\n      integratorId: \"my-app\"\n    })\n  ]\n})\n\nconst response = await mppxFetch(\"https://some-mpp-api.com/resource\")\nconsole.log(await response.json())\n```\n\n## Options\n\n| Option         | Type      | Required | Description                                                         |\n| -------------- | --------- | -------- | ------------------------------------------------------------------- |\n| `account`      | `Account` | yes      | viem Account — Squid scans all supported chains for available funds |\n| `integratorId` | `string`  | yes      | Your Squid integrator ID                                            |\n\n## How it works\n\n1. Receives a Tempo charge challenge `{ amount, currency, recipient }` from a 402 response\n2. Queries Squid for all supported tokens across EVM chains and finds ones held by the account\n3. Selects the best source token and constructs a bridge route to the challenge currency on Tempo\n4. Executes the bridge transaction and polls for the destination tx on Tempo (every 5s, up to 5min)\n5. Returns a credential `{ type: \"hash\", hash }` containing the Tempo destination tx hash\n\nThe 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).\n","readmeFilename":"README.md","homepage":"https://github.com/0xsquid/squid-mpp#readme","keywords":["squid","mpp","tempo","cross-chain","payments"],"repository":{"type":"git","url":"git+https://github.com/0xsquid/squid-mpp.git"},"author":{"name":"0xsquid"},"bugs":{"url":"https://github.com/0xsquid/squid-mpp/issues"},"license":"MIT"}