0

0000402 · Paste

by 0000402

POSTBase

$0.01

per call · USD Coin on Base

Pay $0.01 USDC to store up to 100 KB of text or code. Returns a token for free retrieval anytime via GET /paste/{token}. Network: Base Mainnet. Each request stores one text or code blob and returns a retrieval token, making it useful for notes, code snippets, logs, and debug-output sharing.

Endpoint

POST https://pastebin.0000402.xyz/paste

1

Calls / 30d

1

Unique payers / 30d

Aug 13

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://pastebin.0000402.xyz/paste", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "content": "print('hello world')",
    "language": "python"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://pastebin.0000402.xyz/paste" \
  -H "Content-Type: application/json" \
  -d '{"content":"print('hello world')","language":"python"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "message": "Paste stored. Use GET /paste/{token} to retrieve anytime for free.",
  "size_bytes": 22,
  "token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Payment details

Pay to0xee72b902af7466023595512e3359bb5bf312977c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from 0000402 & similar services