mirror of
https://github.com/status-im/infra-faucet.git
synced 2025-02-24 16:48:54 +00:00
Description
This role configures the faucet service which provides a REST API for receiving funds from our Ropsten and Rinkeby miner cluster.
Configuration
The only required settings are:
faucet_account_addr: 0x12312312312312321
faucet_account_json: '{"wallet":"json"}'
faucet_account_pass: 'very-secret-password'
faucet_network: 'rinkeby-faucet.example.org'
faucet_domain: 'rinkeby'
API
admin@master-01.gc-us-central1-a.faucet.ropsten:~ % curl -s http://localhost:3001/ | jq .
{
"message": "Status.im Ropsten Faucet",
"methods": [
"GET /",
"POST /queue",
"GET /donate/{address}",
"GET /faucet-info"
]
}
Usage
To check sync state you can use the ageth
wrapper for attaching to geth
RPC port:
admin@master-01.gc-us-central1-a.faucet.ropsten:~ % ageth eth.syncing
{
currentBlock: 202432,
highestBlock: 5120931,
knownStates: 0,
pulledStates: 0,
startingBlock: 149504
}