BTNS API - Network Information BTNS API
Method Endpoint Returns
GET /api/network Returns basic network information
Return Values
Value Type Description
currency_info Array Currency information on Bitcoin (BTC) & Counterparty (XCP) from Coinmarketcap.com
network_info Object Network information on Bitcoin network
mainnet Object Network information on Mainnet
testnet Object Network information on Testnet
     block_height Integer Current block height
     tx_index Integer Total number of BTNS transactions
     unconfirmed Object Unconfirmed transaction Information
         btc Integer Number of unconfirmed Bitcoin transactions
         xcp Integer Number of unconfirmed Counterparty transactions
fee_info Object Bitcoin (BTC) miners fee information
optimal Integer Lowest possible fee that has more than 75% chance of getting into the next block
low_priority Integer Lowest possible fee that has more than 75% chance of getting into a block within 2 blocks
min_relay_fee Integer Minimum fee required to relay a transaction.
stats_info Object BTNS Table stats information
Example Response
{
    "currency_info": [{
            "24h_volume_usd": "13199584724.397",
            "available_supply": "18644768.00000000",
            "id": "bitcoin",
            "last_updated": null,
            "market_cap_usd": "540963669176.32",
            "max_supply": "21000000.00000000",
            "name": "Bitcoin",
            "percent_change_24h": "-0.65",
            "price_btc": "1",
            "price_usd": "28007",
            "symbol": "BTC",
            "total_supply": "21000000.00000000"
        },
        {
            "24h_volume_usd": "84510.353394294",
            "available_supply": "2595279.38268124",
            "id": "counterparty",
            "last_updated": null,
            "market_cap_usd": "9432361.0191667",
            "max_supply": "2649791.07838225",
            "name": "Counterparty",
            "percent_change_24h": "-4.67",
            "price_btc": "0.00012896",
            "price_usd": "3.61",
            "symbol": "XCP",
            "total_supply": "2649791.07838225"
        }
    ],
    "fee_info": {
        "high_priority": 12000,
        "low_priority": 9000,
        "optimal": 17000
    },
    "network_info": {
        "mainnet": {
            "block_height": 784265,
            "tx_index": 1930,
            "unconfirmed": {
                "btc": 27146,
                "xcp": 669
            }
        },
        "testnet": {
            "block_height": 2427735,
            "tx_index": 0,
            "unconfirmed": {
                "btc": 71,
                "xcp": 0
            }
        }
    },
    "stats_info": {
        "mainnet": {
            "airdrops": 0,
            "batches": 0,
            "bets": 0,
            "callbacks": 0,
            "destroys": 0,
            "dispensers": 0,
            "dispenses": 0,
            "dividends": 0,
            "issues": 511,
            "lists": 6,
            "mints": 1406,
            "rugs": 0,
            "sends": 3,
            "sleeps": 0,
            "sweeps": 0,
            "tokens": 339,
            "transactions": 1930
        },
        "testnet": {
            "airdrops": 0,
            "batches": 0,
            "bets": 0,
            "callbacks": 0,
            "destroys": 0,
            "dispensers": 0,
            "dispenses": 0,
            "dividends": 0,
            "issues": 0,
            "lists": 0,
            "mints": 0,
            "rugs": 0,
            "sends": 0,
            "sleeps": 0,
            "sweeps": 0,
            "tokens": 0,
            "transactions": 0
        }
    }
}