Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 967 Bytes

README.md

File metadata and controls

48 lines (43 loc) · 967 Bytes

Description

Bitcoin Payment, Wallet & Transaction Data

Example Request

  • Curl
curl 'https://block.io/api/v2/get_balance/?api_key={{token}}'
  • Raw
GET /api/v2/get_balance/?api_key={{token}} HTTP/1.1
Host: block.io

Response

  • Success
{
    "status": "success",
    "data": {
        "network": "BTC",
        "available_balance": "0.00000000",
        "pending_received_balance": "0.00000000"
    }
}
  • Error
{
    "status": "fail",
    "data": {
        "error_message": "API Key invalid or you have not enabled API access for this machine's IP address(es). Check that your API Keys are correct, and that you have enabled API access for this machine's IP Address(es) on your account's Settings page.",
        "connecting_ip": "127.0.0.1"
    }
}

Regex

[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}

Example API key

17b5-7e2c-10f1-9eea