What it is
Mock Pontes reproduces the shape of the publicly documented Pontes A2A API β wallets, funding & defunding, transfers, direct-RTGS, PFoD and XvP β together with the full transport and authentication chain: mTLS, OAuth2 JWT, and NRO (Non-Repudiation-of-Origin, ECDSA P-256) request signing. State is kept in a stateful in-memory or Redis-backed ledger you can create, approve and inspect.
Use cases
Local integration dev
Point your Pontes base URL at the mock and iterate on the 2-step draft β approve flows without ECB credentials.
Full transport/auth
Exercise mTLS, JWT and NRO signing end-to-end, including four-eyes approval and the signerβcertificate binding.
CI & conformance
A fast, zero-dependency service for automated tests; responses follow the official OpenAPI, with unimplemented operations clearly tagged.
Demos & onboarding
Stand up a realistic endpoint for demos and to onboard teams before real Pontes access is available.
Get started
Run the published container (the mock serves HTTPS with a self-signed cert, so use -k
locally):
# run the mock docker run --rm -p 3001:3001 ghcr.io/digital-assets-work/mock-pontes:1.8 # health check curl -sk https://localhost:3001/dlt/bdf/api/octopus/health
Or from source (Node.js 22+):
git clone https://github.com/digital-assets-work/mock-pontes.git cd mock-pontes && npm ci && npm run dev
Example client apps
Ready-to-run clients that connect over mTLS, acquire a JWT and submit an NRO-signed funding request β in TypeScript, Python and Java:
- TypeScript example βNode built-ins, PEM cert + key
- Python example βrequests + cryptography
- Java example βJDK built-ins, PKCS#12
- All examples βShared scenario & prerequisites
Resources
- Source code (GitHub) βgithub.com/digital-assets-work/mock-pontes
- Container image βghcr.io/digital-assets-work/mock-pontes
- API documentationSwagger UI + vendored official spec
- Control panelRuntime config & connectivity
- CSR enrollmentObtain a client certificate
- License β Apache-2.0 βOpen source