Git Product home page Git Product logo

fayd's Introduction

Fayd

Fayd ( فَيْض - meaning "abundance" in arabic) is a Bitcoin Signet faucet built on top of BDK's bitcoind_rpc crate talking to a local Signet bitcoind node. It allows users to request and receive signet coins for testing purposes.

Installation

  1. Clone the repository: git clone https://github.com/tareknaser/fayd.git
  2. Navigate to the core crate directory: cd fayd/fayd-rpc
  3. Install the tool: cargo install --force --locked --path .

Usage

To start the server, use the following command:

fayd-rpc --rpc-user <RPC_USER> --rpc-pass <RPC_PASS> --descriptor <DESCRIPTOR> run

Get Balance

curl http://127.0.0.1:8080/balance

Sync Faucet

curl -X POST http://127.0.0.1:8080/sync

Get a Deposit Address

curl http://127.0.0.1:8080/deposit

Send Funds to Address

curl -X POST --data <address> http://127.0.0.1:8080/send

Options

Fayd is a bitcoin signet faucet

Usage: fayd-rpc [OPTIONS] --descriptor <DESCRIPTOR> <COMMAND>

Commands:
  run   Run the faucet server
  help  Print this message or the help of the given subcommand(s)

Options:
      --descriptor <DESCRIPTOR>  Wallet descriptor [env: DESCRIPTOR=]
      --db-path <DB_PATH>        Path to the wallet database [default: .fayd.db]
      --network <NETWORK>        Network to use [default: signet] [possible values: testnet, signet, regtest]
      --url <URL>                Bitcoin Core RPC URL [env: RPC_URL=] [default: 127.0.0.1:8332]
      --rpc-cookie <RPC_COOKIE>  Bitcoin Core RPC cookie file [env: RPC_COOKIE=]
      --rpc-user <RPC_USER>      Bitcoin Core RPC username [env: RPC_USER=]
      --rpc-pass <RPC_PASS>      Bitcoin Core RPC password [env: RPC_PASS=]
      --amount <AMOUNT>          Amount to send to each address [default: 100000]
  -p, --port <PORT>              Port to listen on [default: 8080]
  -h, --help                     Print help

Packages

Package Description Version
fayd Core crate defining the Faucet wallet struct pre-release
fayd-rpc REST API crate for interacting with fayd and running the faucet pre-release

fayd's People

Contributors

tareknaser avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.