C

Creative Tim · Shadcn Blocks User Payment

by Creative Tim

GETBase

$0.01

per call · USD Coin on Base

View component code after payment

Endpoint

GET https://x402.creative-tim.com/shadcn-blocks/user-payment

15

Calls / 30d

6

Unique payers / 30d

Sep 9

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://x402.creative-tim.com/shadcn-blocks/user-payment", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.creative-tim.com/shadcn-blocks/user-payment?block_name=testimonials-02" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "block_name": "testimonials-02",
  "component": {
    "code": "export function Testimonials02() { ... }",
    "description": "Testimonial cards with social proof badges",
    "name": "testimonials-02",
    "path": "components/testimonials-02.tsx"
  },
  "page": {
    "code": "export default function Page() { ... }",
    "path": "app/testimonials-02/page.tsx"
  },
  "success": true
}

Payment details

Pay to0x45ac00db8bdd4b837abbbf75888cbdfe6b6d8943
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Creative Tim & similar services