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

@ftptech/x402-canton-ledger

v0.1.1

Published

Shared Canton ledger primitives — JSON Ledger API v2 client, Ed25519 external-party signing, Scan API client. Used by @ftptech/x402-canton-facilitator and @ftptech/x402-canton-client.

Readme

@ftptech/x402-canton-ledger

Shared Canton ledger primitives used by both @ftptech/x402-canton-facilitator (server side) and @ftptech/x402-canton-client (payer side).

Install

npm i @ftptech/x402-canton-ledger

Note: the @ftp npm scope is not final — it may change before the first public release (see docs/PUBLISHING.md). Pin the version you install and check the README for the current package name.

What's in here

  • CantonClient — JSON Ledger API v2 wrapper. Encodes the documented gotchas (template id #package:Module:Entity, wrapped vs flat body shapes per endpoint, disclosedContracts, Daml Int as JSON string). Includes submitAndWaitForTransaction, submitAndWait, queryActiveContracts, getLedgerEnd, and the interactiveSubmissionPrepare + interactiveSubmissionExecute pair used for external-party signing.
  • CantonExternalPartySigner + ed25519KeyFromNodeKeyPair
    • signPreparedTransactionHash — Ed25519 signing primitives over /v2/interactive-submission/prepare + /execute. Lets an agent hold its own key and authorize commands without surrendering it to a participant.
  • ScanClient — Scan API reader for AmuletRules, open-and-issuing mining rounds, completed transfers via getUpdateById, transfer-kind resolution (resolveTransferKind), and traffic-status. Validator-proxy + SV-direct flavors.

Why a separate package

Facilitator-side domain wrappers (Cip56InstructionService, MerchantContractService, PreapprovalService) live in @ftptech/x402-canton-facilitator because they encode the facilitator's role (Scan-read verify, MerchantContract template, preapproval provider). The lower-level Canton plumbing in this package is reusable by anyone — including the client SDK's Cip56KeyfileSigner, which uses CantonExternalPartySigner to submit a TransferFactory_Transfer from the agent's own participant.

Project

github.com/sunstrike228/canton-x402.