eth_syncing

获取节点的同步状态.

参数

返回值

  • Object|Boolean - 同步状态的对象,或者没有同步时返回FALSE。同步状态对象信息包括:

    参数名称数据类型描述
    startingBlockQUANTITY同步起始块。
    currentBlockQUANTITY当前区块。
    highestBlockQUANTITY要同步的最高区块。

示例

请求

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":64}'

结果

{
	"jsonrpc": "2.0",
	"id": 64,
	"result": {
		"startingBlock": "0x20e76cc",
		"currentBlock": "0x20e76df",
		"highestBlock": "0x20e76e0"
	}
}