@@ -12,11 +12,6 @@ interact with the network. Users provide a valid wallet address and specify the
1212token type (` faucet_info ` ) they wish to receive. On success, the API returns a
1313transaction hash confirming the token transfer.
1414
15- ** Key points:**
16-
17- - Each address is subject to rate limiting to prevent abuse.
18- - This API only distributes Calibnet ` tFIL ` and ` tUSDFC ` tokens.
19-
2015---
2116
2217## Query Parameters
@@ -28,18 +23,6 @@ transaction hash confirming the token transfer.
2823
2924---
3025
31- ## Rate Limits
32-
33- | Faucet Type | Cooldown Period | Drip Amount | Wallet Cap | Global Cap |
34- | --------------- | --------------- | ----------- | ---------- | ------------ |
35- | ` CalibnetFIL ` | 60 seconds | 1 tFIL | 2 tFIL | 200 tFIL |
36- | ` CalibnetUSDFC ` | 60 seconds | 5 tUSDFC | 10 tUSDFC | 1,000 tUSDFC |
37-
38- ** Note:** All limits reset every 24 hours. Abuse, farming, or automated requests
39- are prohibited and may result in stricter limits or bans.
40-
41- ---
42-
4326## Status Codes
4427
4528| Status Code | Description |
@@ -56,6 +39,8 @@ are prohibited and may result in stricter limits or bans.
5639
5740### Success
5841
42+ #### Success claim for ` CalibnetFIL `
43+
5944- ** Status:** ` 200 OK `
6045- ** Content:** Plain text string containing the transaction hash.
6146
@@ -71,6 +56,21 @@ curl "https://forest-explorer.chainsafe.dev/api/claim_token?faucet_info=Calibnet
71560x06784dd239f7f0e01baa19a82877e17b7fcd6e1dd725913fd6f741a2a6c56ce5
7257```
7358
59+ #### Success claim for ` CalibnetUSDFC `
60+
61+ - ** Status:** ` 200 OK `
62+ - ** Content:** Plain text string containing the transaction hash.
63+
64+ ``` bash
65+ curl " https://forest-explorer.chainsafe.dev/api/claim_token?faucet_info=CalibnetUSDFC&address=0xae9c4b9508c929966ef37209b336e5796d632cdc"
66+ ```
67+
68+ ** Response:**
69+
70+ ``` bash
71+ 0x8d75e2394dcf829ab9353370069b6d6afb04c88ea38c765ab4443a1587e12922
72+ ```
73+
7474### Failure
7575
7676#### 400 Bad Request
@@ -143,6 +143,167 @@ ServerError|I'm a teapot - mainnet tokens are not available.
143143
144144---
145145
146+ # Claim Token All API
147+
148+ **Base URL:** `https://forest-explorer.chainsafe.dev`
149+ **Endpoint:** `/api/claim_token_all`
150+ **HTTP Method:** `GET`
151+
152+ ## Description
153+
154+ Requests claims for both `CalibnetUSDFC` and `CalibnetFIL` in one call. Returns
155+ a JSON array of per-claim results. Each item corresponds to one faucet claim.
156+
157+ ---
158+
159+ ## Query Parameters
160+
161+ | Parameter | Type | Required | Description |
162+ | --------- | ------ | -------- | --------------------------------------------- |
163+ | `address` | string | Yes | The wallet address to receive all the tokens. |
164+
165+ ---
166+
167+ ## Status Codes
168+
169+ | Status Code | Description |
170+ | ----------- | -------------------------------- |
171+ | 200 | Tokens successfully claimed |
172+ | 400 | Bad request - invalid address |
173+ | 429 | Too many requests - rate limited |
174+ | 500 | Server error |
175+
176+ ---
177+
178+ ### Claim Response Success & Failure
179+
180+ The API returns a **JSON array**, where each object corresponds to a faucet
181+ claim attempt. Each object contains:
182+
183+ - `faucet_info`: A string identifying the faucet (e.g., `CalibnetFIL`,
184+ `CalibnetUSDFC`)
185+
186+ And either:
187+
188+ - `tx_hash`: A string containing the transaction hash **if the claim was
189+ successful**,
190+ **or**
191+ - `error`: An object containing the error details **if the claim failed**
192+
193+ ---
194+
195+ ## Examples
196+
197+ ### Success
198+
199+ - **Status:** `200 OK`
200+
201+ **Example:**
202+
203+ ```bash
204+ curl "https://forest-explorer.chainsafe.dev/api/claim_token_all?address=0xAe9C4b9508c929966ef37209b336E5796D632CDc"
205+ ```
206+
207+ **Response:**
208+
209+ ```json
210+ [
211+ {
212+ "faucet_info": "CalibnetUSDFC",
213+ "tx_hash": "0x8d75e2394dcf829ab9353370069b6d6afb04c88ea38c765ab4443a1587e12922"
214+ },
215+ {
216+ "faucet_info": "CalibnetFIL",
217+ "tx_hash": "0xf133c6aae45e40a48b71449229cb45f5ab5f2e7bd8ae488d1142319191ca8eb0"
218+ }
219+ ]
220+ ```
221+
222+ ### Failure
223+
224+ #### 400 Bad Request
225+
226+ - **Status:** `400 Bad Request`
227+ - **Content:** JSON array where each item represents a faucet claim result. Each
228+ item includes `faucet_info` and either a `tx_hash` (on success) or an `error`
229+ object (on failure).
230+
231+ **Example:**
232+
233+ ```bash
234+ curl "https://forest-explorer.chainsafe.dev/api/claim_token_all?address=invalidaddress"
235+ ```
236+
237+ **Response:**
238+
239+ ```json
240+ [
241+ {
242+ "faucet_info": "CalibnetUSDFC",
243+ "error": {
244+ "ServerError": "Invalid address: Not a valid Testnet address"
245+ }
246+ },
247+ {
248+ "faucet_info": "CalibnetFIL",
249+ "error": {
250+ "ServerError": "Invalid address: Not a valid Testnet address"
251+ }
252+ }
253+ ]
254+ ```
255+
256+ #### 429 Too Many Requests
257+
258+ - **Status:** `429 Too Many Requests`
259+ - **Content:** JSON array where each item represents a faucet claim result. Each
260+ item includes `faucet_info` and either a `tx_hash` (on success) or an `error`
261+ object (on failure).
262+
263+ **Example:**
264+
265+ ```bash
266+ curl "https://forest-explorer.chainsafe.dev/api/claim_token_all?address=0xAe9C4b9508c929966ef37209b336E5796D632CDc"
267+ ```
268+
269+ **Response:**
270+
271+ ```json
272+ [
273+ {
274+ "faucet_info": "CalibnetUSDFC",
275+ "error": {
276+ "ServerError": "Too many requests: Rate limited. Try again in 46 seconds."
277+ }
278+ },
279+ {
280+ "faucet_info": "CalibnetFIL",
281+ "error": {
282+ "ServerError": "Too many requests: Rate limited. Try again in 12 seconds."
283+ }
284+ }
285+ ]
286+ ```
287+
288+ ---
289+
290+ **Key points:**
291+
292+ - Each address is subject to rate limiting to prevent abuse.
293+ - This API only distributes Calibnet `tFIL` and `tUSDFC` tokens.
294+
295+ ## Rate Limits
296+
297+ | Faucet Type | Cooldown Period | Drip Amount | Wallet Cap | Global Cap |
298+ | --------------- | --------------- | ----------- | ---------- | ------------ |
299+ | `CalibnetFIL` | 60 seconds | 1 tFIL | 2 tFIL | 200 tFIL |
300+ | `CalibnetUSDFC` | 60 seconds | 5 tUSDFC | 10 tUSDFC | 1,000 tUSDFC |
301+
302+ **Note:** All limits reset every 24 hours. Abuse, farming, or automated requests
303+ are prohibited and may result in stricter limits or bans.
304+
305+ ---
306+
146307## Faucet Top-Up Requests
147308
148309If you encounter a server error indicating that faucet is exhausted.
0 commit comments