我正在使用以太坊学习区块链,我想使用Solidity在智能合约中使用过去的交易数据.如果我在用javascript编写的程序中使用Web3.js模块,我可以轻松获得这些数据.但我无法使用Solidity在Smart合同中获取这些数据.
Solidity的参考说我们可以通过使用"block.number"和"block.blockhash(uint blockNumber)"函数来获取当前的块编号,blockhash等,但是没有提到获取事务数据.(http://solidity.readthedocs.io/en/latest/units-and-global-variables.html#special-variables-and-functions)
请帮我.