Loading...


Bitcoin 2 Block Explorer Real-time API Queries

Each API query URL starts with: https://www.bitc2.org/block-explorer/apiquery?q= followed by the command.
So for example: https://www.bitc2.org/block-explorer/apiquery?q=getinfo

Summary Queries

  1. getinfo - Summary of the current Bitcoin 2 blockchain data. Gets the number of blocks, difficulty, current money supply (Bitcoin 2s in circulation) and the portion of the zBTC2 supply. (The zBTC2 supply is included in the BTC2 supply).
  2. getsupply - Gets the current money supply. (Bitcoin 2s in circulation, zBTC2 included.)
  3. getsupplyinsatoshis - Gets the current money supply in satoshis. (Bitcoin 2 satoshis in circulation, zBTC2 included.)
  4. getblockcount - Gets the number of blocks.
  5. getdifficulty - Gets the current difficulty.

Block Queries

  1. getblock&nr=X - Gets the block X. Where X is any block number, such as 50000. (Combines getblockhash&nr=X and getblock&hash=X commands into one command.)
  2. getblockhash&nr=X - Gets the block hash of block number X. Where X is any block number, such as 50000.
  3. getblockheader&hash=X - Gets the block header of the block X. Where X is any block's hash, such as 3bff63563cc0d2e7bd2e4307b5c4d9249a8e6aebf36a0e4ddb1fe97c953e048e.
  4. getblock&hash=X - Gets the block X. Where X is any block's hash, such as 3bff63563cc0d2e7bd2e4307b5c4d9249a8e6aebf36a0e4ddb1fe97c953e048e.

Transaction Queries

  1. gettransaction&hash=X - Gets the transaction X. Where X is any transaction's hash, such as b31144ab8e33052b34d6f15b37f46ffdc59e035f3bd9fe536f642d4c51703047.
  2. getrawtransaction&hash=X - Gets the raw, serialized transaction X. Where X is any transaction's hash, such as b31144ab8e33052b34d6f15b37f46ffdc59e035f3bd9fe536f642d4c51703047.