feat: add helpers for getAddressLookupTable and getNonce #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
@solana/clientand@solana/react-hooks.Closes #68
Open Questions Addressed
Should the LUT helper also accept multiple addresses in one call (batch)?
Yes. Implemented both single and batch variants:
fetchLookupTable(address)- single LUT fetchfetchLookupTables(addresses[])- batch fetch usinggetMultipleAccountsBatch support is important because transactions often reference multiple LUTs, and batching reduces RPC round trips.
For nonces, should we prefer getNonceAndContext or parsed getAccountInfo?
Chose
getAccountInfowithjsonParsedencoding. Reasons:fetchAccountpatterngetNonceAndContextis a specialized RPC method not exposed in the current kit wrapperChanges
@solana/client
AddressLookupTableData,NonceAccountDatawith full type definitionsfetchLookupTable(address, commitment?)- parses LUT binary datafetchLookupTables(addresses[], commitment?)- batch variantfetchNonceAccount(address, commitment?)- uses jsonParsed encoding@solana/react-hooks
useLookupTable(address, options?)- SWR-powered with loading/error statesuseNonceAccount(address, options?)- SWR-powered with loading/error statesuseBalance,useAccount)Documentation
@solana/clientREADME with usage examples@solana/react-hooksREADME with React examplesUsage
Testing
pnpm lintpnpm testpnpm build