查询 solidity 节点最新区块信息。
用法
visionWeb.vs.getConfirmedCurrentBlock();
入参
无
返回值
object,查询到的最新区块信息。
示例
visionWeb.vs.getConfirmedCurrentBlock();
> {
blockID: '000000000001c31a74c86099dcfc636feb5f2a506fb0b54ced9f63814e3a3ae6',
block_header: {
raw_data: {
number: 115482,
txTrieRoot: '0000000000000000000000000000000000000000000000000000000000000000',
witness_address: '462d7a77f8bef6fe225bf5e353dd6a380f588a1496',
parentHash: '000000000001c319cfc461c46d4a56a66dffd5c60f0d6995160fc4d509ab3004',
version: 19,
timestamp: 1608363738000
},
witness_signature: 'd4abe6ee8bb423668c2163b3b24951604b4b085069da616438a2580cf110d19e08b18f1b7d463469ff45c2b3d716fda2f380aa980ca9b82c2664c8edf5b7ece100'
}
}