Programmatic Access
Full API documentation for developers integrating with the DBC blockchain platform.
Authentication
All API requests require a valid API key in the Authorization
header.
Example format:
Authorization: Bearer YOUR_API_KEY
🔑
API Key Required
Register at account settings
Smart Contract Endpoints
Deploy Contract
POST
/api/v1/contract/deploy
curl -X POST "https://api.dbc/contract/deploy" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "code": "0x608060405234806...", "gas_limit": "1000000", "chain_id": 1 }'
Deploys a new smart contract to the DBC network.
Contract Methods
POST
/api/v1/contract/:address
curl -X POST "https://api.dbc/contract/0x1234..." \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "method": "transfer", "args": ["0xRecipientAddress", "1000000000000000000"] }'
Transaction API
Send Transaction
POST
/api/v1/transaction/send
{ "from": "0xYourWalletAddress", "to": "0xRecipientAddress", "value": "1000000000000000000", "gas_price": "20000000000", "gas_limit": "21000" }
Standard eth_sendTransaction
Advanced DBC features
Blockchain Data
Get Block
GET
/api/v1/block/1234567
{ "block_number": 1234567, "timestamp": "2025-09-19T12:34:56Z", "transactions": ["0x...", "0x..."], "miner": "0xMiningAddress" }
Retrieve full block data by block number or hash.