skynetcap / solanaj

Solana RPC client written in Java
MIT License
91 stars 47 forks source link

add 'getLatestBlockhash' RPC call #28

Closed itsmelodewyk closed 9 months ago

itsmelodewyk commented 9 months ago

The following PR resolves #7

itsmelodewyk commented 9 months ago

A note on this PR, I am using the RecentBlockhash class. Would you prefer I create a LatestBlockhash class? Seeing as there is a difference (albeit small) in the data returned. If so, I'd probably create a Blockhash class and have RecentBlockhash and LatestBlockhash be subclasses.

skynetcap commented 9 months ago

A note on this PR, I am using the RecentBlockhash class. Would you prefer I create a LatestBlockhash class? Seeing as there is a difference (albeit small) in the data returned. If so, I'd probably create a Blockhash class and have RecentBlockhash and LatestBlockhash be subclasses.

RecentBlockhash is fine to use here. Thank you for the contribution!