0

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

0

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

https://developers.eos.io/manuals/eos/latest/nodeos/plugins/chain_api_plugin/api-reference/index

1
  • 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. Commented 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.