网站首页 » 区块链 » FISCO BCOS 命令行交互控制台重点命令

FISCO BCOS 命令行交互控制台重点命令

May 21, 2021 区块链

部署合约

[group:1]> deploy HelloWorld
contract address:0xc0ce097a5757e2b6e189aa70c7d55770ace47767  # 合约地址

获取区块高度

[group:1]> getBlockNumber 
9

调用合约

call <合约名称> <合约地址> get


call HelloWorld 0x175b16a1299c7af3e2e49b97e68a44734257a35e get

查看节点及连接P2P节点的nodeid列表

[group:1]> getNodeIDList 
[
    fd6ae58efb37f2726d55cfe088046789808fc1fb12eef4766d6be7608596f40507188172551a5422881032be8146cfcf81c4a0c11820c2b5be9afd12fc2bb26d,
    84ebb6b6f45fd0556cc82d81ba0425f81d1bdbca04ab02f6d47332a1ccd531f41481e767a7af506334d1c6db6417e41e23e67212719f2c23e421fa94ace06210,
    aa28b74d4e05c92f7dfdc97ee2414585ca9c6c88cfd17ed89a36d637bd6a39fb2b53a721e6adb51e488a4e9e2f26f83a3664e89183c3d2b84d0a2214aae9ffa1,
    5c3fc56833a0895e4347d1e6c35a4e9db1b8e57cd1e425d35b8704cb184935980e1025b7904161a499c66220e14a90041e3aafd4e77a81cbbeb451137bb76bb6
]
添加新评论