diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-02-07 08:15:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 08:15:25 +0800 |
commit | 562bcb85710c281d817c7dd4957f0a7db1ddc306 (patch) | |
tree | 3a96355adab7a5ee7c9a203ad4247ef356d35668 /packages/testnet-faucets/README.md | |
parent | 00c07b38a42c82d7c37835234d7f81236b0342ce (diff) | |
parent | f44bfa9682544a8fc50ef9221991982fd665f9f5 (diff) | |
download | dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar.gz dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar.bz2 dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar.lz dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar.xz dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.tar.zst dexon-sol-tools-562bcb85710c281d817c7dd4957f0a7db1ddc306.zip |
Merge pull request #352 from 0xProject/feature/testnet-faucets/order-dispenser
Add order signing and dispensing ability to faucet
Diffstat (limited to 'packages/testnet-faucets/README.md')
-rw-r--r-- | packages/testnet-faucets/README.md | 20 |
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 ``` |