quanta-hello
v1.0.0
Published
Pay-per-use hello-world npm package (Quanta on Arc) — each function call settles a sub-cent USDC nanopayment via Circle Gateway, then runs.
Readme
quanta-hello
A pay-per-use hello-world package, powered by Quanta on Arc.
helloWorld() and greet(name) are ordinary functions — but each call first settles a sub-cent
USDC nanopayment to the author via Circle Gateway (gas-free, on Arc), then runs.
Install
export QUANTA_BUYER_PRIVATE_KEY=0x<your funded Arc wallet key>
npm install quanta-helloInstall is free — it only checks a payer wallet is configured.
Use
const { greet, helloWorld } = require("quanta-hello");
(async () => {
console.log(await helloWorld()); // pays 0.001 USDC, then → "Hello, World! 🌍"
console.log(await greet("Arc")); // pays 0.001 USDC, then → "Hello, Arc! 👋"
})();Each call is one nanopayment to the author. Settlements appear on the author's dashboard.
