Block API

Cryptocurrency / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Block (formerly block.io) provides a cryptocurrency payment and wallet API that lets developers send and receive Bitcoin and other supported coins programmatically. After creating an account and obtaining an API key, you can generate wallet addresses, query balances, and broadcast transactions. It abstracts much of the raw blockchain complexity into simple REST calls.

💡

Beginner Tip

Obtain your API key from the Block.io dashboard under the API Keys section; you will also need your wallet PIN for any transaction-related calls. Start with the /get_balance endpoint to confirm your key is working before attempting sends.

Available Data

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply

Example Response

JSON Response
{
  "id": "bitcoin",
  "symbol": "btc",
  "current_price": 65432.1,
  "market_cap": 1280000000000,
  "price_change_24h": 1250.5,
  "price_change_percentage_24h": 1.95,
  "total_volume": 28500000000
}

Field Reference

status Indicates success or fail for the API call.
data.network Blockchain network this wallet belongs to, e.g., BTC or LTC.
data.available_balance Confirmed balance available for spending, in full coin units.
data.pending_received_balance Incoming funds not yet confirmed by the network.
data.wallet_name Human-readable name given to this wallet in the Block.io dashboard.

Implementation Example

const url = "https://block.io/docs/basic";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden or "Invalid API Key" The API key does not match the network (mainnet vs. testnet) you are targeting.
Log into block.io and verify you are using the key associated with the correct network and coin (BTC, LTC, DOGE).
"PIN is required" error on send calls Transaction endpoints require a secondary authentication PIN in addition to the API key.
Pass your wallet PIN as the pin parameter in the request body — never hard-code it, use an environment variable.
Insufficient funds error The wallet balance is below the transaction amount plus network fees.
Call /get_balance first to verify available funds, and always account for dynamic network fees returned in /get_network_fee_estimate.

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 0/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →