Skip to content

Commit fbe8c18

Browse files
authored
chore: In README, add the curl command to send coins (#11)
Signed-off-by: Jeff Thompson <jeff@thefirst.org>
1 parent 14e5674 commit fbe8c18

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ To run the faucet, start the built binary:
5050
./build/faucet
5151
```
5252

53+
It should print something like the following. (Note the port number at the end.)
54+
```
55+
2024-01-11T12:47:27.826+0100 INFO cmd/logger.go:17 faucet started at [::]:8545
56+
```
57+
58+
4. To send coins to a single account, in a new terminal enter the following (change to the correct recipient address):
59+
```bash
60+
curl --location --request POST 'http://localhost:8545' --header 'Content-Type: application/json' --data '{"To": "g1juz2yxmdsa6audkp6ep9vfv80c8p5u76e03vvh"}'
61+
```
62+
5363
### As a library
5464

5565
To add `faucet` to your Go project, simply run:

0 commit comments

Comments
 (0)