Blockchain 有没有办法从tendermint API的区块链获取数据
有没有办法从tendermint API的区块链获取数据?Blockchain 有没有办法从tendermint API的区块链获取数据,blockchain,tendermint,Blockchain,Tendermint,有没有办法从tendermint API的区块链获取数据? 当然可以。你在寻找什么数据?如果使用默认设置运行节点并转到localhost:46657/,则会看到端点列表 如果需要块,请尝试localhost:46657/block?height=42端口号46657对我不起作用,然后我尝试打印tendermint端口并尝试点击http://localhost:57943/block?height=99 其中99是我在区块链中的第一个区块的高度 57943是我的tendermint端口 因此,可能
当然可以。你在寻找什么数据?如果使用默认设置运行节点并转到
localhost:46657/
,则会看到端点列表
如果需要块,请尝试
localhost:46657/block?height=42
端口号46657对我不起作用,然后我尝试打印tendermint端口并尝试点击http://localhost:57943/block?height=99
其中99是我在区块链中的第一个区块的高度
57943是我的tendermint端口
因此,可能是动态获取端口号。从tendermint访问区块链数据的最佳方式是使用rpc端点。rpc端点端口可以在config.toml文件中配置。访问端点时,可以看到各种端点,其中少数需要参数,少数不需要参数。默认端口从46657更改为266657在以后的版本中。我在嫩薄荷上使用乳液。