From fbe8c18033242b300ac82a0d7bfe656a3a6b4c77 Mon Sep 17 00:00:00 2001 From: Jeff Thompson Date: Thu, 11 Jan 2024 13:11:41 +0100 Subject: [PATCH] chore: In README, add the curl command to send coins (#11) Signed-off-by: Jeff Thompson --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3203a1c..7e89fd1 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,16 @@ To run the faucet, start the built binary: ./build/faucet ``` +It should print something like the following. (Note the port number at the end.) +``` +2024-01-11T12:47:27.826+0100 INFO cmd/logger.go:17 faucet started at [::]:8545 +``` + +4. To send coins to a single account, in a new terminal enter the following (change to the correct recipient address): +```bash +curl --location --request POST 'http://localhost:8545' --header 'Content-Type: application/json' --data '{"To": "g1juz2yxmdsa6audkp6ep9vfv80c8p5u76e03vvh"}' +``` + ### As a library To add `faucet` to your Go project, simply run: