I find that there is delay of the rest rpc service.
there is an example of the delay.
commands:
curl --location --request GET ‘https://fullnode.mainnet.aptoslabs.com/v1’
echo $(($(date +%s%N)/1000))
result example:
{“chain_id”:1,“epoch”:“2615”,“ledger_version”:“143517920”,“oldest_ledger_version”:“0”,“ledger_timestamp”:“1684404571496790”,“node_role”:“full_node”,“oldest_block_height”:“0”,“block_height”:“55812208”,“git_hash”:“6568c5ee6a58b4f96c0780d4f66d7e573e61c418”}
1684404573561491
I use the rpc to get the latest ledger information. but the timestamp of the latest ledger is 2 seconds delay.
The rpc doesn’t reply the latest ledger?