🇳🇱✖️DutchX Example: How to use the API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/img Create basic example and documentation for using the API May 2, 2018
.gitignore Ignore logs and history May 21, 2018
LICENSE.md Create basic example and documentation for using the API May 2, 2018
README.md Correct message Oct 3, 2018
index.js Add image to README and API urls Jul 17, 2018
package.json Create basic example and documentation for using the API May 2, 2018
yarn.lock

README.md

API Usage - DutchX

This is a simple project that shows how to use the DutchX API.

The API is an alternative and easier way to access to the information on the smart contracts.

It was built to make the information more accessible, so it hides the barriers that a newcomer may find in the Ethereum development.

Documentation

The API and it's documentation is avaliable for:

Check out also the DutchX Documentation

Getting started

To get started, you just have to make a regular REST call using any http client.

For example, in node you could use got to make the http requests:

yarn add got --save # Or: npm install got  --save

Then we can invoke any of the Api operations.

For example, to get the complete list of tokens pairs (markets) that has been added to the DutchX we can use the /markets endpoint:

got = require('got');
const { body: markets } = await got('https://dutchx.d.exchange/api/v1/markets', {
  json: true
})

The complete example can be seen in here.

You can run it with:

yarn start # Or: npm start

We should see as a result the list of tokens:

alt text

Contributors