-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathopenai_gpt_action_rustchain.json
More file actions
217 lines (217 loc) · 7.47 KB
/
openai_gpt_action_rustchain.json
File metadata and controls
217 lines (217 loc) · 7.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
"openapi": "3.1.0",
"info": {
"title": "RustChain Bounty Hunter",
"description": "Check RTC token balances, browse miners with vintage hardware multipliers, and view network stats. RustChain is a Proof-of-Antiquity blockchain where vintage hardware like PowerPC G4/G5 earns higher rewards. 1 RTC = $0.10 USD.",
"version": "0.1.0"
},
"servers": [
{
"url": "https://rustchain.org",
"description": "RustChain primary attestation node"
}
],
"paths": {
"/health": {
"get": {
"operationId": "getHealth",
"summary": "Check node health",
"description": "Returns the current health status of the RustChain node including version, uptime, and database status. Use this to verify the network is online.",
"responses": {
"200": {
"description": "Node health status",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the node is healthy"
},
"version": {
"type": "string",
"description": "Node software version"
},
"uptime_s": {
"type": "number",
"description": "Uptime in seconds"
},
"db_rw": {
"type": "boolean",
"description": "Whether the database is readable and writable"
}
}
}
}
}
}
}
}
},
"/epoch": {
"get": {
"operationId": "getEpoch",
"summary": "Get current epoch info",
"description": "Returns the current epoch number, slot, number of enrolled miners, and the epoch reward pot in RTC. Epochs are 600-second intervals during which miners attest and earn rewards.",
"responses": {
"200": {
"description": "Current epoch information",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"epoch": {
"type": "integer",
"description": "Current epoch number"
},
"slot": {
"type": "integer",
"description": "Current slot number"
},
"enrolled_miners": {
"type": "integer",
"description": "Number of miners enrolled in this epoch"
},
"epoch_pot": {
"type": "number",
"description": "Total RTC reward pot for this epoch"
}
}
}
}
}
}
}
}
},
"/api/miners": {
"get": {
"operationId": "getMiners",
"summary": "List active miners",
"description": "Returns all currently active miners on the RustChain network with their hardware type and antiquity multiplier. Vintage hardware like PowerPC G4 (2.5x), G5 (2.0x), and Apple Silicon (1.2x) earn higher rewards than modern x86_64 (1.0x).",
"responses": {
"200": {
"description": "List of active miners",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"miner": {
"type": "string",
"description": "Miner wallet ID or name"
},
"hardware_type": {
"type": "string",
"description": "Hardware architecture (e.g. G4, G5, modern, apple_silicon)"
},
"antiquity_multiplier": {
"type": "number",
"description": "Reward multiplier based on hardware vintage (G4=2.5x, G5=2.0x, modern=1.0x)"
}
}
}
}
}
}
}
}
}
},
"/balance": {
"get": {
"operationId": "getBalance",
"summary": "Check RTC balance",
"description": "Check the RTC token balance for a specific miner. Provide the miner_id as a query parameter. Returns the balance in RTC (1 RTC = $0.10 USD).",
"parameters": [
{
"name": "miner_id",
"in": "query",
"required": true,
"description": "The miner wallet ID or name to check the balance for",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Balance information for the miner",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"miner_id": {
"type": "string",
"description": "The queried miner ID"
},
"balance_rtc": {
"type": "number",
"description": "RTC token balance"
}
}
}
}
}
}
}
}
},
"/api/stats": {
"get": {
"operationId": "getNetworkStats",
"summary": "Get network statistics",
"description": "Returns overall RustChain network statistics including total miners, blocks, transactions, and reward distribution data.",
"responses": {
"200": {
"description": "Network statistics",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
},
"/lottery/eligibility": {
"get": {
"operationId": "checkEligibility",
"summary": "Check miner lottery eligibility",
"description": "Check whether a specific miner is eligible for the current epoch's reward lottery. Miners must have a valid attestation with passing hardware fingerprint checks to be eligible.",
"parameters": [
{
"name": "miner_id",
"in": "query",
"required": true,
"description": "The miner wallet ID or name to check eligibility for",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Eligibility status for the miner",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
}
}