# Gavin Andresen
# 2011-05-06 15:36:24
# https://bitcointalk.org/index.php?topic=7421.msg108938#msg108938

This has been lingering for months, and got bogged down in discussions of some nifty new mega-efficient binary protocol for stuff.  That hasn't happened.  So:  @s{(link)} @p{par}

This adds these new RPC commands: @p{par}

monitortx/monitorblocks: POST JSON-RPC to a URL when new wallet transactions or blocks are received. @p{brk}
listmonitored: list URLS that will be POSTed to @p{brk}
getblock: get information about a block, given depth in main chain. @p{par}

monitortx posts the same information you get from gettransaction. @p{brk}
monitorblock/getblock posts: @p{brk}

Code:
{ @p{brk}
    "hash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048", @p{brk}
    "blockcount" : 1, @p{brk}
    "version" : 1, @p{brk}
    "merkleroot" : "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098", @p{brk}
    "time" : 1231469665, @p{brk}
    "nonce" : 2573394689, @p{brk}
    "difficulty" : 1.00000000, @p{brk}
    "tx" : [ @p{brk}
        "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098" @p{brk}
    ], @p{brk}
    "hashprevious" : "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f", @p{brk}
    "hashnext" : "000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd" @p{brk}
} @p{par}

 @p{brk}