Getting started
The mppx TypeScript library
Choose a signing account
Create a server-only wallet.ts module, then import account wherever an example creates a local signing account.
wallet.ts
import { privateKeyToAccount } from 'viem/accounts'
export const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`)Overview
The mppx TypeScript library provides a typed interface over the Machine Payments Protocol, from high-level abstractions to low-level primitives and building blocks.
Install
Quick start
This quick start guide shows you how to use mppx with the tempo payment method.
You can apply the same patterns to other payment methods.