Skip to main content
Para provides a standard ViemAccount that works seamlessly with x402’s HTTP payment protocol. This guide shows you how to integrate Para wallets with x402 for stablecoin payments.

Prerequisites

  • Para SDK configured with API credentials
  • Node.js 18+ or modern browser environment
  • Basic understanding of Viem accounts
  • x402 facilitator URL (default: https://x402.org/facilitator)

Installation

Install packages

Install the required packages:

Setup

1

Initialize Para SDK

2

Get ViemAccount

Para provides a standard ViemAccount that works with any Viem-compatible library:

Usage

Client-Side Payments

React Hook Integration

Server-Side Setup

1

Configure middleware

Set up your Express server with x402 payment middleware:
2

Apply payment middleware

Configure the middleware with your wallet address and pricing:
3

Create protected endpoint

Add your protected endpoint and start the server:

Examples

Autonomous Agent

Build an agent that makes autonomous payments:

Multi-Chain Payments

Use Para’s multi-chain support with x402:

Next Steps

x402 Documentation

Learn more about the x402 payment protocol

Viem Guide

Explore Para’s Viem integration in detail

Bulk Wallet Pregeneration

Intermediate · 25 min · Large-scale wallet generation

Miden Integration

Intermediate · 25 min · Zero-knowledge virtual machine

Chrome Extension Integration

Advanced · 45 min · Browser extensions with Para wallets