Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taxmeifyoucan/api-faucet
ETH faucet via python API
https://github.com/taxmeifyoucan/api-faucet
Last synced: 16 days ago
JSON representation
ETH faucet via python API
- Host: GitHub
- URL: https://github.com/taxmeifyoucan/api-faucet
- Owner: taxmeifyoucan
- Created: 2023-08-25T18:13:23.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-06T10:33:02.000Z (9 months ago)
- Last Synced: 2024-10-07T16:21:06.104Z (about 1 month ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ETH API faucet
A simple API for sending funds from a faucet.
## Faucet
The faucet is publicly deployed for [Ephemery testnet](https://ephemery.dev) at https://api-faucet.bordel.wtf
To deploy your own, change variables in the code and run simply using `python3 main.py`.
## API usage
#### Recieve testnet funds to your address:
Sends given amount of ETH to given address. Returns txid.
Route: `/send-eth`
Type: POST
Content:
`to_address":"eth_address",
"amount_eth":amount_in_eth`cURL example:
`curl -X POST "http://localhost:8000/send-eth" -H "accept: application/json" -H "Content-Type: application/json" -d '{"to_address":"0x1234567890123456789012345678901234567890","amount_eth":10}'`
#### Check status of the faucet:
Returns amount of ETH left in the faucet and its settings.
Route: `/status`
Type: GET
cURL example:
`curl "http://localhost:8000/status`