DEV Community

Yaqing2023
Yaqing2023

Posted on

MoltsPay Now Supports Testnet - Build and Test Without Real Money

Good news for developers building AI agent payments! 🎉

MoltsPay now supports Base Sepolia testnet in both Node.js and Python SDKs. Build and test your x402 payment integrations without spending real money.

What's New

  • Free testnet USDC via faucet API
  • Base Sepolia support (testnet for Base L2)
  • Available in moltspay (npm) and moltspay (PyPI)

Quick Start (Node.js)

npm install moltspay@latest

# Get testnet USDC
npx moltspay faucet

# Test payment
npx moltspay pay https://moltspay.com/a/yaqing text-to-video --chain base_sepolia --prompt "a cat dancing"
Enter fullscreen mode Exit fullscreen mode

Quick Start (Python)

from moltspay import MoltsPay

client = MoltsPay(chain="base_sepolia")
client.faucet()

result = client.pay(
    "https://moltspay.com/a/yaqing",
    "text-to-video",
    prompt="a cat dancing"
)
Enter fullscreen mode Exit fullscreen mode

Check out more examples in the demos/ directory:

Links

Happy building! 🚀

Top comments (0)