You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some useful methods and properties on EVM for getting block and transaction properties.
blockhash(uint blockNumber) returns (bytes32): hash of the given block when blocknumber is one of the 256 most recent blocks; otherwise returns zero
block.basefee (uint): current block’s base fee (EIP-3198 and EIP-1559)
block.chainid (uint): current chain id
block.coinbase (address payable): current block miner’s address
block.difficulty (uint): current block difficulty
block.gaslimit (uint): current block gaslimit
block.number (uint): current block number
block.timestamp (uint): current block timestamp as seconds since unix epoch
gasleft() returns (uint256): remaining gas
msg.data (bytes calldata): complete calldata
msg.sender (address): sender of the message (current call)
msg.sig (bytes4): first four bytes of the calldata (i.e. function identifier)
msg.value (uint): number of wei sent with the message
tx.gasprice (uint): gas price of the transaction
tx.origin (address): sender of the transaction (full call chain)
We need to provide more methods for getting chain, block, and transaction properties in Move:
History block hash, maybe can use the accumulator to retrieve whole chain block history.
History state_root hash, the developer can check state proof in Move module.
More properties about the current block
Properties about Current transaction
Maybe we can use the accumulator for support to retrieve the whole transaction history?
Maybe properties about chain?
The text was updated successfully, but these errors were encountered:
There are some useful methods and properties on EVM for getting block and transaction properties.
We need to provide more methods for getting chain, block, and transaction properties in Move:
The text was updated successfully, but these errors were encountered: