VelCoin API Documentation

Complete API reference for VelCoin (VLC) blockchain integration.

Network Endpoints

GET/

Network information and available endpoints.

GET/status

Detailed network status including block height, supply, and holders.

GET/api/stats

Network statistics for explorers and monitoring.

Blockchain Endpoints

GET/blocks

Get all blocks. Use ?limit=10&offset=0 for pagination.

GET/block/<index_or_hash>

Get specific block by index number or block hash.

GET/tx/<hash>

Get transaction by hash (from blockchain or mempool).

Account Endpoints

GET/balance/<address>

Get balance and transaction history for address.

GET/address/<address>

Full address information with recent transactions.

GET/api/address/<address>/history

Complete transaction history for address.

Transaction Endpoints

GET/mempool

Get pending transactions in mempool.

POST/send

Submit a signed transaction.

{
  "from": "sender_address",
  "to": "recipient_address",
  "amount": 100.0,
  "nonce": 1,
  "public_key": "public_key_hex",
  "signature": "signature_hex"
}

Wallet Endpoints

POST/create_wallet

Generate a new wallet with private key, public key, and address.

Mining Endpoints

POST/mine

Mine a new block with current mempool transactions.

{
  "miner_address": "optional_miner_address"
}

Explorer

Visit /explorer for the web-based blockchain explorer.