is there a way to find the time stamp of the block in which the transaction was mined like in solidity we can use block.timestamp. Can I have code examples of finding it.

1 Answer 1


Check the developers portal for the details on the EOSIO API:


  • 2
    Thanks, for any one in the future the answer to this is to use eosio::current_block_time().to_time_point().sec_since_epoch() to get time stamp in uint32_t type, remove sec_since_epoch() to get data in time_point data type. Jun 22, 2021 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.