@@ -74,25 +74,25 @@ export const FaucetRoutes: FastifyPluginAsync<
74
74
preHandler : missingBtcConfigMiddleware ,
75
75
schema : {
76
76
operationId : 'run_faucet_btc' ,
77
- summary : 'Add testnet BTC tokens to address' ,
78
- description : `Add 0.01 BTC token to the specified testnet BTC address.
77
+ summary : 'Add regtest BTC tokens to address' ,
78
+ description : `Add 0.01 BTC token to the specified regtest BTC address.
79
79
80
- The endpoint returns the transaction ID, which you can use to view the transaction in a testnet Bitcoin block
80
+ The endpoint returns the transaction ID, which you can use to view the transaction in a regtest Bitcoin block
81
81
explorer. The tokens are delivered once the transaction has been included in a block.
82
82
83
- **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.` ,
83
+ **Note:** This is a Bitcoin regtest- only endpoint. This endpoint will not work on the Bitcoin mainnet.` ,
84
84
tags : [ 'Faucets' ] ,
85
85
querystring : Type . Object ( {
86
86
address : Type . Optional (
87
87
Type . String ( {
88
- description : 'A valid testnet BTC address' ,
88
+ description : 'A valid regtest BTC address' ,
89
89
examples : [ '2N4M94S1ZPt8HfxydXzL2P7qyzgVq7MHWts' ] ,
90
90
} )
91
91
) ,
92
92
large : Type . Optional (
93
93
Type . Boolean ( {
94
94
description :
95
- 'Request a larger amount of testnet BTC than the default' ,
95
+ 'Request a larger amount of regtest BTC than the default' ,
96
96
default : false ,
97
97
} )
98
98
) ,
@@ -101,7 +101,7 @@ export const FaucetRoutes: FastifyPluginAsync<
101
101
Type . Object ( {
102
102
address : Type . Optional (
103
103
Type . String ( {
104
- description : 'A valid testnet BTC address' ,
104
+ description : 'A valid regtest BTC address' ,
105
105
examples : [ '2N4M94S1ZPt8HfxydXzL2P7qyzgVq7MHWts' ] ,
106
106
} )
107
107
) ,
@@ -119,7 +119,7 @@ export const FaucetRoutes: FastifyPluginAsync<
119
119
{
120
120
title : 'RunFaucetResponse' ,
121
121
description :
122
- 'POST request that initiates a transfer of tokens to a specified testnet address' ,
122
+ 'POST request that initiates a transfer of tokens to a specified Bitcoin regtest address' ,
123
123
}
124
124
) ,
125
125
'4xx' : Type . Object ( {
@@ -132,7 +132,7 @@ export const FaucetRoutes: FastifyPluginAsync<
132
132
async ( req , reply ) => {
133
133
await btcFaucetRequestQueue . add ( async ( ) => {
134
134
const address = req . query . address || req . body ?. address ;
135
- const tbtcAmount = req . query . large ? 0.5 : 0.01 ;
135
+ const btcAmount = req . query . large ? 0.5 : 0.01 ;
136
136
if ( ! address ) {
137
137
return await reply . status ( 400 ) . send ( {
138
138
error : 'address required' ,
@@ -164,7 +164,7 @@ export const FaucetRoutes: FastifyPluginAsync<
164
164
} ) ;
165
165
}
166
166
167
- const tx = await makeBtcFaucetPayment ( btc . networks . regtest , address , tbtcAmount ) ;
167
+ const tx = await makeBtcFaucetPayment ( btc . networks . regtest , address , btcAmount ) ;
168
168
await fastify . writeDb ?. insertFaucetRequest ( {
169
169
ip : `${ ip } ` ,
170
170
address : address ,
@@ -191,7 +191,7 @@ export const FaucetRoutes: FastifyPluginAsync<
191
191
tags : [ 'Faucets' ] ,
192
192
params : Type . Object ( {
193
193
address : Type . String ( {
194
- description : 'A valid testnet BTC address' ,
194
+ description : 'A valid regtest BTC address' ,
195
195
examples : [ '2N4M94S1ZPt8HfxydXzL2P7qyzgVq7MHWts' ] ,
196
196
} ) ,
197
197
} ) ,
0 commit comments