Charge for the call.
Keep the result.

Charge for API requests in USDG on Robinhood Chain. Deliver after payment confirms, and let buyers recover the same response without paying again.

Build on either side.

Charge for an endpoint with merchant middleware, or pay for a request with the buyer client. Both use x402 and USDG on Robinhood Chain.

Merchant middleware

Set an exact USDG price for a read-only endpoint. Release the response after the payment service confirms settlement.

Merchant integration

Buyer client

Check the merchant and set a spending cap before signing. Save the purchase so your app can recover the result later.

Buyer integration
paidbeam@0.2.0-rc.1
import { protect, PaymentServiceClient } from 'paidbeam/merchant';

const client = new PaymentServiceClient(serviceUrl, merchantKey);

export const GET = protect({
  client,
  endpointId: 'transaction-report',
  publicOrigin: 'https://api.example.com',
}, async request => {
  const report = await generateReport(request);
  return Response.json(report);
});

Register the endpoint and price with your operator. Keep the merchant credential on your server.

Follow a paid request.

See what a buyer gets back when they recover a report.

Same report. No second charge.

The buyer sends the original purchase record and gets back the same saved response.

Simulation

Original response

HTTP 200
{
  "transaction": {
    "status": "success",
    "gasUsed": "21000"
  }
}

Recovered response

HTTP 200
{
  "transaction": {
    "status": "success",
    "gasUsed": "21000"
  }
}

Identical response body

One call. One report.

Look up a Robinhood Chain transaction and get its receipt status, network fees, and decoded ERC-20 transfers.

GET /api/transaction-report

Input
Transaction hash
Output
Cached JSON report
Price
1 USDG / report

api.paidbeam.xyz

Retry delivery with the same purchase

If the connection drops after checkout, the saved purchase can retrieve the same report without a second signature or charge.

Read the recovery guide
Buy a transaction report

Before your first request.

Where does the payment go?

USDG moves directly from the buyer's wallet to the merchant's configured receiving wallet on Robinhood Chain. The service verifies settlement before releasing the paid response.

What happens if the connection drops?

The buyer SDK saves a purchase record before submitting authorization. Use that same record to recover the response. Recovery creates no new payable order and requests no second signature. Keep the record private: it contains payment authorization and access credentials.

What can I use the first version for?

Exact-price, read-only GET endpoints returning bounded JSON or text. The current SDK supports ordinary externally owned Robinhood Chain wallets. Contract wallets, subscriptions, streaming responses and variable charges are outside this version.

Can I start integrating today?

Install the Paidbeam TypeScript SDK from npm and follow the integration guide. For your own API, Paidbeam registers your endpoint and provides a service URL and merchant credential. You can also try the hosted report API today.

Make your next request payable.

Use the Paidbeam TypeScript SDK to add USDG payments to your API. Merchant setup goes through Paidbeam.