Skip to content

Commit

Permalink
chore: In README, add the curl command to send coins (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 authored Jan 11, 2024
1 parent 14e5674 commit fbe8c18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fbe8c18

Please sign in to comment.