faucet-terminal 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -34
- package/install.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,19 +14,42 @@ Starknet Sepolia · Ethereum Sepolia
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
17
19
|
```bash
|
|
18
20
|
npm install -g faucet-terminal
|
|
19
21
|
```
|
|
20
22
|
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Ethereum Sepolia (ETH)
|
|
27
|
+
faucet-terminal request 0xYOUR_ADDRESS --network ethereum
|
|
28
|
+
faucet-terminal req 0xYOUR_ADDRESS -n eth # short version
|
|
29
|
+
|
|
30
|
+
# Starknet Sepolia (STRK - default)
|
|
31
|
+
faucet-terminal request 0xYOUR_ADDRESS --network starknet
|
|
32
|
+
faucet-terminal req 0xYOUR_ADDRESS -n sn # short version
|
|
33
|
+
|
|
34
|
+
# Starknet Sepolia (ETH)
|
|
35
|
+
faucet-terminal request 0xYOUR_ADDRESS --network starknet --token ETH
|
|
36
|
+
faucet-terminal req 0xYOUR_ADDRESS -n sn --token ETH # short version
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Example Output
|
|
40
|
+
|
|
21
41
|
```
|
|
22
|
-
$ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth
|
|
42
|
+
$ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth
|
|
23
43
|
|
|
24
44
|
faucet terminal
|
|
25
45
|
|
|
26
46
|
network ethereum
|
|
27
47
|
|
|
48
|
+
[Verification] What is 5 + 7? 12
|
|
49
|
+
Correct!
|
|
50
|
+
|
|
28
51
|
✔ Challenge received
|
|
29
|
-
✔ Challenge solved in
|
|
52
|
+
✔ Challenge solved in 32.1s
|
|
30
53
|
✔ Transaction submitted!
|
|
31
54
|
|
|
32
55
|
────────────────────────────────────────────────────────
|
|
@@ -41,65 +64,128 @@ $ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth-sep
|
|
|
41
64
|
✔ Tokens will arrive in ~30 seconds
|
|
42
65
|
```
|
|
43
66
|
|
|
44
|
-
##
|
|
67
|
+
## Supported Networks
|
|
68
|
+
|
|
69
|
+
| Network | Full Name | Aliases | Tokens |
|
|
70
|
+
|:--------|:----------|:--------|:-------|
|
|
71
|
+
| Starknet Sepolia | `starknet` | `sn`, `sn-sep` | STRK (default), ETH |
|
|
72
|
+
| Ethereum Sepolia | `ethereum` | `eth`, `eth-sep` | ETH |
|
|
73
|
+
|
|
74
|
+
## Commands
|
|
75
|
+
|
|
76
|
+
### Request Tokens
|
|
45
77
|
|
|
46
78
|
```bash
|
|
47
|
-
#
|
|
48
|
-
faucet-terminal
|
|
79
|
+
# Full command
|
|
80
|
+
faucet-terminal request <ADDRESS> --network <NETWORK> [--token <TOKEN>]
|
|
49
81
|
|
|
50
|
-
#
|
|
51
|
-
faucet-terminal req
|
|
82
|
+
# Short version
|
|
83
|
+
faucet-terminal req <ADDRESS> -n <NETWORK> [--token <TOKEN>]
|
|
52
84
|
|
|
53
|
-
#
|
|
54
|
-
faucet-terminal
|
|
85
|
+
# Shortest version
|
|
86
|
+
faucet-terminal r <ADDRESS> -n <NETWORK>
|
|
87
|
+
```
|
|
55
88
|
|
|
56
|
-
|
|
57
|
-
|
|
89
|
+
**Examples:**
|
|
90
|
+
```bash
|
|
91
|
+
faucet-terminal request 0x123...abc --network ethereum # ETH on Ethereum
|
|
92
|
+
faucet-terminal req 0x123...abc -n eth # same, shorter
|
|
93
|
+
faucet-terminal r 0x123...abc -n eth # same, shortest
|
|
94
|
+
|
|
95
|
+
faucet-terminal request 0x123...abc --network starknet # STRK on Starknet
|
|
96
|
+
faucet-terminal req 0x123...abc -n sn # same, shorter
|
|
97
|
+
|
|
98
|
+
faucet-terminal request 0x123...abc --network starknet --token ETH # ETH on Starknet
|
|
99
|
+
faucet-terminal req 0x123...abc -n sn --token ETH # same, shorter
|
|
58
100
|
```
|
|
59
101
|
|
|
60
|
-
|
|
102
|
+
### Check Status
|
|
61
103
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
| Ethereum Sepolia | `ethereum` `eth` `eth-sep` | ETH |
|
|
104
|
+
```bash
|
|
105
|
+
# Full command
|
|
106
|
+
faucet-terminal status <ADDRESS> --network <NETWORK>
|
|
66
107
|
|
|
67
|
-
|
|
108
|
+
# Short version
|
|
109
|
+
faucet-terminal s <ADDRESS> -n <NETWORK>
|
|
110
|
+
```
|
|
68
111
|
|
|
112
|
+
**Examples:**
|
|
113
|
+
```bash
|
|
114
|
+
faucet-terminal status 0x123...abc --network ethereum
|
|
115
|
+
faucet-terminal s 0x123...abc -n eth
|
|
69
116
|
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
117
|
+
|
|
118
|
+
### View Faucet Info
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Full command
|
|
122
|
+
faucet-terminal info --network <NETWORK>
|
|
123
|
+
|
|
124
|
+
# Short version
|
|
125
|
+
faucet-terminal i -n <NETWORK>
|
|
75
126
|
```
|
|
76
127
|
|
|
77
|
-
|
|
128
|
+
**Examples:**
|
|
129
|
+
```bash
|
|
130
|
+
faucet-terminal info --network ethereum
|
|
131
|
+
faucet-terminal i -n eth
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Check Your Quota
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Full command
|
|
138
|
+
faucet-terminal quota
|
|
78
139
|
|
|
140
|
+
# Short version
|
|
141
|
+
faucet-terminal q
|
|
79
142
|
```
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
143
|
+
|
|
144
|
+
### View Rate Limits
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Full command
|
|
148
|
+
faucet-terminal limits
|
|
149
|
+
|
|
150
|
+
# Short version
|
|
151
|
+
faucet-terminal l
|
|
84
152
|
```
|
|
85
153
|
|
|
154
|
+
## Options
|
|
155
|
+
|
|
156
|
+
| Option | Short | Description |
|
|
157
|
+
|:-------|:------|:------------|
|
|
158
|
+
| `--network` | `-n` | Network to use (required for most commands) |
|
|
159
|
+
| `--token` | | Token to request: `ETH`, `STRK` |
|
|
160
|
+
| `--json` | | Output in JSON format |
|
|
161
|
+
| `--help` | `-h` | Show help |
|
|
162
|
+
|
|
86
163
|
## Rate Limits
|
|
87
164
|
|
|
88
165
|
```
|
|
89
|
-
5 requests/day
|
|
90
|
-
1 request/hour
|
|
91
|
-
24h cooldown
|
|
166
|
+
5 requests/day per IP address
|
|
167
|
+
1 request/hour per token type (ETH and STRK tracked separately)
|
|
168
|
+
24h cooldown after daily limit reached
|
|
92
169
|
```
|
|
93
170
|
|
|
94
171
|
## How It Works
|
|
95
172
|
|
|
96
173
|
```
|
|
97
|
-
1. Submit address → Validate format
|
|
98
|
-
2. Verification → Answer simple question
|
|
99
|
-
3. Proof of Work → Solve SHA-256 challenge (~
|
|
100
|
-
4. Receive tokens → Transaction submitted
|
|
174
|
+
1. Submit address → Validate format for the network
|
|
175
|
+
2. Verification → Answer a simple math question
|
|
176
|
+
3. Proof of Work → Solve SHA-256 challenge (~30-60s)
|
|
177
|
+
4. Receive tokens → Transaction submitted to blockchain
|
|
101
178
|
```
|
|
102
179
|
|
|
180
|
+
## Error Messages
|
|
181
|
+
|
|
182
|
+
The CLI provides clear error messages when you hit rate limits:
|
|
183
|
+
|
|
184
|
+
- `[HOURLY LIMIT]` - You requested this token within the last hour
|
|
185
|
+
- `[DAILY LIMIT]` - You've used all 5 daily requests
|
|
186
|
+
- `[FAUCET LIMIT]` - Faucet has temporarily reached its distribution limit
|
|
187
|
+
- `[LOW BALANCE]` - Faucet balance is too low
|
|
188
|
+
|
|
103
189
|
## License
|
|
104
190
|
|
|
105
191
|
MIT
|
package/install.js
CHANGED