You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/create-your-first-url.md
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,47 @@ Let's create a monetized URL using the Bitcoin whitepaper as an example:
22
22
5. Select GET as the HTTP method (for files, this is typically always GET).
23
23
6. Click "Add URL" (or "Upload File" if applicable).
24
24
25
-
After submitting, you'll receive a shortened URL similar to `https://proxy402.com/cizbtYMSzJ`. This is your monetized link. Whenever someone accesses this URL, they'll need to pay 0.01 USDC on the Base Sepolia testnet. After payment, Proxy402 makes a GET request to the original Bitcoin whitepaper URL and returns the content to the user.
25
+
After submitting, you'll receive a shortened URL similar to `https://proxy402.com/BbcYpYMy6p`. This is your monetized link. Whenever someone accesses this URL, they'll need to pay 0.00001 USDC on the Base Sepolia testnet. After payment, Proxy402 makes a GET request to the original Bitcoin whitepaper URL and returns the content to the user.
26
26
27
27
If you set up a credit-based link, the first payment grants access and provides a way to use the remaining credits for future access (covered in the 'Accessing Monetized Content' guide).
28
28
29
29
## Understanding the X402 Protocol Response
30
30
31
-
Open a monetized URL in your browser to see the X402 protocol response. [Click here to view an example](https://proxy402.com/cizbtYMSzJ) of the Bitcoin whitepaper with a 0.01 USDC price tag.
31
+
Open a monetized URL in your browser to see a nice paywall page for your content. [Click here to view an example](https://proxy402.com/BbcYpYMy6p) of the Bitcoin whitepaper with a 0.00001 USDC price tag.
32
32
33
-
The response will look like this:
33
+
The browser will display a user-friendly payment page that looks like this:
34
34
35
35

36
36
37
-
This response contains all the payment details that an X402-compatible client needs to pay for access, including:
38
-
- The payment amount (0.01 USDC)
37
+
If you want to see the raw X402 protocol JSON response (useful for developers), you can use `curl` with the `@` symbol:
38
+
39
+
```bash
40
+
curl https://proxy402.com/BbcYpYMy6p | jq
41
+
{
42
+
"accepts": [
43
+
{
44
+
"scheme": "exact",
45
+
"network": "base",
46
+
"maxAmountRequired": "10",
47
+
"resource": "https://proxy402.com/BbcYpYMy6p",
48
+
"description": "Payment for GET https://proxy402.com/BbcYpYMy6p",
0 commit comments