The ArabianChain API V1 is the quickest and easiest way to integrate DubaiCoin-DBIX payments into your business or application. Consisting of a simple and powerful REST API, you can be up and running in minutes by sending and receiving JSON (JavaScript Object Notation) objects. JSON is an open standard data format that is lightweight and human-readable, and looks like Objects do in JavaScript; hence the name. When you send content to or make a request to the API, the response will be returned in JSON.

This enable developers to create distributed apps accepting DubaiCoin-DBIX transactions.

API Versions

All API calls are versioned, and the current ArabianChain API is v1. The ArabianChain API is currently in beta, and we hope not to introduce any breaking changes, but until it’s out of beta we can’t make that guarantee until it’s stable.

RESTful Resources

Almost all resources exist under the DubaiCoin-DBIX blockchain, and follow this pattern:

http://api.arabianchain.org/$API_VERSION/dbix/$CHAIN/

Currently, there’s only one version of the API (v1). For DubaiCoin-DBIX, there are the available blockchains:

Authentication

We want everyone to try our API with as little friction as possible, which is why you don’t need a token for any read-only GET calls. Please register for a user token if you want to use POST and DELETE calls. Once you have your token, you can append it to all your requests like any other URL parameter.

Blockchain API

The first component of the ArabianChain API allows you to query general information about DubaiCoin-DBIX blockchain and blocks.

If you’re new to blockchains, you can think of the blockchain itself as an immutable, distributed ledger. Each block in the blockchain is like a “page” in the ledger containing information about transactions between parties. A great place to start understanding the mechanics behind blockchains is the original Bitcoin whitepaper.


Address API

ArabianChain Address API allows you to look up information about public DubaiCoin-DBIX addresses/accounts and generate your own low-value DubaiCoin-DBIX addresses/public-private key pairs.

If you’re new to blockchains, you can think of public addresses as similar to bank account numbers in a traditional ledger. The biggest differences:

  • Anyone can generate a public address.
  • No single authority is needed to generate new addresses, it’s just public-private key cryptography.

There are two types of accounts in DubaiCoin-DBIX state:

  • Normal or externally controlled accounts.
  • Contracts.

Both types of accounts have an DBIX balance.

Transactions can be fired from both types of accounts, though contracts only fire transactions in response to other transactions that they have received. Therefore, all action on the DubaiCoin-DBIX blockchain is set in motion by transactions fired from externally-controlled accounts.

Transaction API

ArabianChain Transaction API allows you to look up information about unconfirmed transactions, query transactions based on hash, and create and propagate your own transactions.

Contract API

A smart contract is a collection of code and data that resides at a specific address on our blockchain. Contract accounts are able to pass messages between themselves as well as doing practically turing complete computation.

The main goal of a smart contract is to enable two anonymous parties to trade and do business with each other, without the need for an intermediary.