Luke | Flow Community (2024-05-21)
hey, could I get a hand with this Q:
Hi Flow team, could you please provide the RPC to obtain the latest block height? Also, the RPC to retrieve transactions based on the block height. Thank you
5 Replies
I've created a thread for your message. Please continue any relevant discussion in this thread.
You can rename this thread using
/title <new title>
If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence@Vishal | Flow maybe?
gRPC endpoints are documented here - https://developers.flow.com/networks/node-ops/access-onchain-data/access-nodes/accessing-data/access-api
flow cli uses gRPC and to get the latest block you do
flow blocks get latest -n mainnet
if you are using REST, then the API is here: https://developers.flow.com/http-api
Flow cli: https://developers.flow.com/tools/flow-clithank you mate!!
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View