aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/README.md
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-07 08:26:35 +0800
committerFabio Berger <me@fabioberger.com>2018-02-07 08:26:35 +0800
commit4c9c4c487a034d926443eeb8a0154fd38c97aca3 (patch)
treeb0d0f2a5d225097335733a3e37871f9c32551aa5 /packages/testnet-faucets/README.md
parentc172b9e0800dd9ed959b03e7ee418b9787c70c38 (diff)
parent562bcb85710c281d817c7dd4957f0a7db1ddc306 (diff)
downloaddexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.gz
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.bz2
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.lz
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.xz
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.zst
dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.zip
Merge branch 'development' of github.com:0xProject/0x.js into development
* 'development' of github.com:0xProject/0x.js: Bump subproviders version Update yarn.lock Change rpcUrls keys back into string literals Add types-bn package to 0x.js and testnet-faucets Prettier Addressed comments and update 0xProject/types-ethereumjs-util deps Prettier Update testnet-faucets README Fix lint errors Add order signing and dispensing ability to faucet
Diffstat (limited to 'packages/testnet-faucets/README.md')
-rw-r--r--packages/testnet-faucets/README.md20
1 files changed, 12 insertions, 8 deletions
diff --git a/packages/testnet-faucets/README.md b/packages/testnet-faucets/README.md
index a52d16a00..2f6ae347f 100644
--- a/packages/testnet-faucets/README.md
+++ b/packages/testnet-faucets/README.md
@@ -86,17 +86,23 @@ Returns a JSON payload describing the state of the queues for each network. For
}
```
-`GET /ether/:recipient`
+`GET /ether/:recipient?networkId=:networkId`
-Where recipient is a hex encoded Ethereum address prefixed with `0x`.
+Schedules a transaction that sends 0.1 ETH to the `recipient` on the network specified by `networkId` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan).
-`GET /zrx/:recipient`
+`GET /zrx/:recipient?networkId=:networkId`
-Where recipient is a hex encoded Ethereum address prefixed with `0x`.
+Schedules a transaction that sends 0.1 ZRX to the `recipient` on the network specified by `networkId` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan).
-#### Parameters
+`GET /order/weth/:recipient?networkId=:networkId`
-The endpoints `/ether` and `/zrx` take a query parameter named `networkId` to specify the desired network where you would like to receive the ETH or ZRX. For example:
+Returns a JSON payload describing an order for 0.1 WETH in exchange for 0.1 ZRX signed by the dispenser address on the network specified by `networkId`. The taker is specified by `recipient` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan).
+
+`GET /order/zrx/:recipient?networkId=:networkId`
+
+Returns a JSON payload describing an order for 0.1 ZRX in exchange for 0.1 WETH signed by the dispenser address on the network specified by `networkId`. The taker is specified by `recipient` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan).
+
+#### Example request
```bash
curl -i http://localhost:3000/ether/0x14e2F1F157E7DD4057D02817436D628A37120FD1\?networkId=3
@@ -104,8 +110,6 @@ curl -i http://localhost:3000/ether/0x14e2F1F157E7DD4057D02817436D628A37120FD1\?
This command will request the local server to initiate a transfer of 0.1 ETH from the dispensing address to `0x14e2F1F157E7DD4057D02817436D628A37120FD1` on the Ropsten testnet.
-If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan)
-
### Docker configs
```