RPC ERROR:

Query API(试运行)


Network Data

getdifficulty(可用) - current mining difficulty
getblockcount(可用) - current block height
getlasthash(可用) - hash of latest block

Coin Data

blockreward - current block reward
moneysupply(可用) - total coins mined
unminedcoins - total unmined coins
runtime - time since first block (secs)

Transaction Data

txinput/TxHash - total tx input value
txoutput/TxHash - total tx output value
txfee/TxHash - tx fee value (inputs - outputs)
txcount - number of tx's in blockchain

Address Data

addressbalance(可用)/Address/Confs - balance of address
addresslimit/Address/Confs - withdrawal limit of address
addresslastseen/Address - block when address last used
addresscount - number of non-empty addresses

JSON Data

getinfo(可用) - general information
txinfo/TxHash - transaction information
addressinfo/Address/Confs - address information
blockinfo/BlockHash - block information

部分API使用方法

获取当前网络难度:

/?q=getdifficulty

获取当前区块高度:

/?q=getblockcount

获取当前区块hash:

/?q=getblockhash

获取当前全网币数:

/?q=moneysupply

获取指定钱包余额(参数arg1即为地址,例如UkDMjGipAe3faDUMx6CNCjBXXpBXQ1qE14):

/?q=addressbalance&arg1=UkDMjGipAe3faDUMx6CNCjBXXpBXQ1qE14

或者:

/q/addressbalance/UkDMjGipAe3faDUMx6CNCjBXXpBXQ1qE14

注意:钱包余额非实时,有一定延迟;请勿频繁调用API