CoinMiningIndex API

getheight

Returns the last block height.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getheight

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Example

https://www.blockexperts.com/api?coin=cmx&action=getheight

Response

489159

getdifficulty

Returns the proof-of-work difficulty.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getdifficulty

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Example

https://www.blockexperts.com/api?coin=cmx&action=getdifficulty

Response

0.0008966

getnetworkghps

Returns the hashrate in GH/s.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getnetworkghps

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Example

https://www.blockexperts.com/api?coin=cmx&action=getnetworkghps

Response

0.020591992

getmoneysupply

Returns the coins in circulation.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getmoneysupply

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Example

https://www.blockexperts.com/api?coin=cmx&action=getmoneysupply

Response

10800720.64025695

getblock

Returns the block in json for the matching block hash.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getblock&hash=<hash>

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Replace <hash> with the hash of the block.

Example

https://www.blockexperts.com/api?coin=cmx&action=getblock&hash=8254c2f83944028a46614ba36f9effa47440d1c7bc16d058fc5a92fddf42e445

Response

{
    "hash": "8254c2f83944028a46614ba36f9effa47440d1c7bc16d058fc5a92fddf42e445",
    "confirmations": 1,
    "size": 434,
    "height": 489536,
    "version": 6,
    "merkleroot": "c60c77082950e2fa72d36eca19c108fc939ae73a4009999b4cd425d775f061b7",
    "mint": 0.01232058,
    "time": 1535704517,
    "nonce": 0,
    "bits": "1e0fffff",
    "difficulty": 0.00024414,
    "blocktrust": "100001",
    "chaintrust": "cdc222cf071cacb7c",
    "previousblockhash": "a95c64eb243dc643762d8e8f55720b516ca36ecc57e2f7dd6c2b4cba72767c71",
    "flags": "proof-of-stake",
    "proofhash": "000005ed2d771b573aa58e8a41c7813d3baae7814a849cdc2b1c38b764f7dc32",
    "entropybit": 1,
    "modifier": "b6af7e422e8bde27",
    "modifierchecksum": "5836197c",
    "tx": [
        "caca45b4eb1f04e1b60556e0108d6bf2c034c596038fdf14f7e9a591932892d7",
        "31cba16f75aa26e472fe26b95d89853e8e159b8c6d3bdfa645daef7c4aa3a923"
    ],
    "signature": "304402201a81d241c632d71f8e74dffc63ddae248f254c6dae4fecd7cd1795c5b0db193902204491895d939a99e763c35b1705016a778e8221fa1f26fb7186ee2da5e1e66d9c"
}

getblockhash

Returns the blockhash for the matching block height.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getblockhash&height=<height>

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Replace <height> with the height of the block.

Example

https://www.blockexperts.com/api?coin=cmx&action=getblockhash&height=489536

Response

"8254c2f83944028a46614ba36f9effa47440d1c7bc16d058fc5a92fddf42e445"

getrawtransaction

Returns the transaction in json for the matching transaction hash.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getrawtransaction&tx=<tx>

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Replace <tx> with the hash of the transaction.

Example

https://www.blockexperts.com/api?coin=cmx&action=getrawtransaction&tx=31cba16f75aa26e472fe26b95d89853e8e159b8c6d3bdfa645daef7c4aa3a923

Response

{
    "hex": "01000000c5fd885b01074acbf8be2f4ad5480f8096a04be8b92c0158fe9398b8b0522a2ff39da4efc4500000006a47304402200f6a9a27444d119a3dd2eba2bd622d564b79fc9d0ec27e788576c657881c4f7302206f62613934e62a3596db8f21dac4414bdaf089b0eddeedc0c4b3bfd70f9c78f8012103055afb4a20287e91eb9ed4b6ec9a37cd642d8f615443762354189f78c9da6e0effffffff02000000000000000000d82a750000000000232103055afb4a20287e91eb9ed4b6ec9a37cd642d8f615443762354189f78c9da6e0eac00000000",
    "txid": "31cba16f75aa26e472fe26b95d89853e8e159b8c6d3bdfa645daef7c4aa3a923",
    "version": 1,
    "time": 1535704517,
    "locktime": 0,
    "vin": [
        {
            "txid": "c4efa49df32f2a52b0b89893fe58012cb9e84ba096800f48d54a2fbef8cb4a07",
            "vout": 80,
            "scriptSig": {
                "asm": "304402200f6a9a27444d119a3dd2eba2bd622d564b79fc9d0ec27e788576c657881c4f7302206f62613934e62a3596db8f21dac4414bdaf089b0eddeedc0c4b3bfd70f9c78f801 03055afb4a20287e91eb9ed4b6ec9a37cd642d8f615443762354189f78c9da6e0e",
                "hex": "47304402200f6a9a27444d119a3dd2eba2bd622d564b79fc9d0ec27e788576c657881c4f7302206f62613934e62a3596db8f21dac4414bdaf089b0eddeedc0c4b3bfd70f9c78f8012103055afb4a20287e91eb9ed4b6ec9a37cd642d8f615443762354189f78c9da6e0e"
            },
            "sequence": 4294967295
        }
    ],
    "vout": [
        {
            "value": 0,
            "n": 0,
            "scriptPubKey": {
                "asm": "",
                "type": "nonstandard"
            }
        },
        {
            "value": 0.0767868,
            "n": 1,
            "scriptPubKey": {
                "asm": "03055afb4a20287e91eb9ed4b6ec9a37cd642d8f615443762354189f78c9da6e0e OP_CHECKSIG",
                "reqSigs": 1,
                "type": "pubkey",
                "addresses": [
                    "8HHa5Bkb1MGSCyFNPNzDhts86iNpMSG1SM"
                ]
            }
        }
    ],
    "blockhash": "8254c2f83944028a46614ba36f9effa47440d1c7bc16d058fc5a92fddf42e445",
    "confirmations": 20,
    "blocktime": 1535704517
}

getbalance

Returns the balance of an address.

Usage

https://www.blockexperts.com/api?coin=<coin_abbreviation>&action=getbalance&address=<address>

Replace <coin_abbreviation> with the abbreviation of your block explorer.

Replace <address> with a public wallet address.

Example

https://www.blockexperts.com/api?coin=cmx&action=getbalance&address=8HHa5Bkb1MGSCyFNPNzDhts86iNpMSG1SM

Response

0.07678680

Error handling

The API returns an error with a message when the request could not be made.

Example

https://www.blockexperts.com/api?coin=cmx&action=notexistingapicommand

Response

{
    "error": "true",
    "message": "API action not available."
}