get_block_timestamp
Documentation for eth_defi.timestamp.get_block_timestamp function.
- get_block_timestamp(web3, block_identifier, raw=False)
Get a block timestamp.
Slow method. Use only for individual queries.
By hand:
curl $JSON_RPC_MANTLE -X POST -H "Content-Type: application/json" --data '{"method":"eth_getBlockByNumber","params":["0x1",false],"id":1,"jsonrpc":"2.0"}'
- Parameters
- Returns
Timezone naive UTC datetime
- Return type