REST API
Base URL: https://evobin.xyz/v1
The identity routes are typed read-throughs of the Sansbank DAPI proxy. They do not write documents. Every response reports the network that was used.
Network parameter
network is optional and defaults to testnet:
curl -s "https://evobin.xyz/v1/drive/identity/iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx?network=testnet"
When the parameter is omitted, networkDefaulted is true in the response. Always
send network explicitly when the result matters.
Identity
GET /v1/drive/identity/:identityId
curl -s "https://evobin.xyz/v1/drive/identity/iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx?network=testnet"
Response shape:
{
"success": true,
"identityId": "iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx",
"network": "testnet",
"networkDefaulted": false,
"result": {
"identityId": "iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx",
"publicKeyHash": "fa19c185509d0a1d5ff70b540f0760dd0a7a8439",
"credits": "99924710640",
"duffs": "99924710.64",
"dash": "0.9992471064",
"revision": "0",
"publicKeys": []
}
}
The publicKeys array is populated from the upstream identity record. The example
above is abbreviated.
Balance
GET /v1/drive/identity/:identityId/balance
curl -s "https://evobin.xyz/v1/drive/identity/iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx/balance?network=testnet"
{
"success": true,
"identityId": "iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx",
"network": "testnet",
"networkDefaulted": false,
"result": {
"credits": "99924710640",
"duffs": "99924710.64",
"dash": "0.9992471064"
}
}
Public keys
GET /v1/drive/identity/:identityId/keys
The upstream returns a bare array; this route wraps it:
{
"success": true,
"identityId": "iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx",
"network": "testnet",
"networkDefaulted": false,
"result": {
"publicKeys": []
}
}
Contract nonce
GET /v1/drive/identity/:identityId/contract-nonce/:dataContractId
curl -s "https://evobin.xyz/v1/drive/identity/iacPe5YT7MHJh1XJpQyJmw1yVRCpgq5ncfgxQmxP3Rx/contract-nonce/FgeMdT68DwmHR6QRkQ14BgsWbYrN8gbEhdJwEYpiJSSi?network=testnet"
A document create must use nonce + 1. The upload path fetches this value before
constructing documents.
Identity by key hash
GET /v1/drive/identity/by-key-hash/:hash
hash is a 40-character hex HASH160 public key hash.
curl -s "https://evobin.xyz/v1/drive/identity/by-key-hash/fa19c185509d0a1d5ff70b540f0760dd0a7a8439?network=testnet"
Faucet proxy
GET /v1/faucet/proxy?path=/api/status
POST /v1/faucet/proxy?path=/api/asset-lock-proof
The proxy only forwards an allow-list of faucet paths. The faucet's captcha and rate limits still apply. For normal funding, use the faucet UI directly:
https://faucet.testnet.networks.dash.org
Errors
{
"success": false,
"network": "testnet",
"networkDefaulted": true,
"error": "Upstream error",
"type": "UPSTREAM_ERROR"
}
Malformed identifiers are rejected with 400 before the upstream call. The full
OpenAPI document is at /v1/openapi.json.