Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.5 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.5 KB

ACES: ARK ~ ETH

An example how easy it is to setup ACES ETH to ARK Channel Service using Docker.

Requirements

In order to run ARK ~ ETH service you'll need to have access to a trusted DARK node (ARK node running on devnet) and an ETH node (running on any ETH testnet).

How to run

  1. Change the settings under environment in docker-compose.yml
  2. Start project by running docker-compose up

It might take a while for the project to start the first time.

Useful curl commands

Subscribe ark-eth-channel to events on listener-ark

curl -X POST 'localhost:9091/subscriptions' \
-H 'Content-type: application/json' \
-d '{
  "callbackUrl": "http://localhost:9190/public/eventLogger",
  "minConfirmations": 5
}'

Create an ACES contract for sending ETH (tesnet) to someone using DARK tokens.

curl -X POST localhost:9190/contracts \
-H 'Content-type: application/json' \
-d '{
 "arguments": {
   "recipientEthAddress": "<recipients-eth-address>"
 }
}'

Check status of the contract:

 curl -X GET http://localhost:9190/contracts/<contract-id>

Useful links related to this project:

Have questions or would like to learn more?

Join #aces channel on ARK's Slack