[Get general information]
// Request
curl -X POST https://dval.org/api.php \
-H "Content-Type: application/json" \
-d '{
  "Object": "Info"
}'

// Sample Response
{
  "Price": "0.02",
  "Available": "100000000"
}

Response

A successful request returns the HTTP 200 OK status code and a JSON response body.

Price float
Current price (EUR) for 1 DVA.
Available int
Number of DVAL Coins (DVA) that are not in circulation.
[Get Wallet Balance]
// Sample Request
curl -X POST https://dval.org/api.php \
-H "Content-Type: application/json" \
-d '{
  "Object": "Balance",
  "User": "demo@domain.com",
  "Password": "demo",
  "Key": "demo" <- API key is in your wallet on the main page!
}'

// Sample Response
{
  "Balance": "1500"
}

Response

A successful request returns the HTTP 200 OK status code and a JSON response body.

HTTP 401 Unauthorized - Password, API key or email address is incorrect.
Balance int
Number of DVAL Coins (DVA) in this wallet.
[Importing DVAL Coins into a wallet]
// Sample Request
curl -X POST https://dval.org/api.php \
-H "Content-Type: application/json" \
-d '{
  "Object": "Import",
  "Key": "demo", <- API key is in your wallet on the main page!
  "String": "K0Wf86?T3/2A4200..." <- content of the .DVA file
}'

// Sample Response
{
  "Value": "1100"
}

Response

A successful request returns the HTTP 200 OK status code and a JSON response body.

HTTP 401 Unauthorized - API key is invalid.
HTTP 406 Not Acceptable - String is invalid or DVAL Coins have already been transferred to a wallet.
Value int
Number of DVAL Coins (DVA) added to this wallet.
[Export DVAL Coins from a Wallet]
// Sample Request
curl -X POST https://dval.org/api.php \
-H "Content-Type: application/json" \
-d '{
  "Object": "Export",
  "User": "demo@domain.com",
  "Password": "demo",
  "Key": "demo", <- API key is in your wallet on the main page!
  "Value": "5" <- Number (int) of DVAL Coins to be exported
}'

// Sample Response
{
  "Link": "https://dval.org/download.php?dva=ec23625f5829b8..."
}

Response

A successful request returns the HTTP 200 OK status code and a JSON response body.

HTTP 401 Unauthorized - Password, API key or email address is incorrect.
HTTP 417 Expectation Failed - Attempting to export more DVAL Coins (DVA) than available in this wallet.
Link string
A link to download the encrypted .DVA file.