mud icon indicating copy to clipboard operation
mud copied to clipboard

add indexer support to `getRecord` util

Open alvrs opened this issue 10 months ago • 2 comments

Currently getRecord always reads via a eth RPC call. We should add an optional indexerUrl param to read from the indexer instead.

https://github.com/latticexyz/mud/blob/f1e008f2d2a7ba2369a07f9807a7ee0cd1b3b20c/packages/store/ts/getRecord.ts#L14-L24

alvrs avatar Feb 27 '25 10:02 alvrs

or better yet we could infer this from client.chain.indexerUrl

frolic avatar Feb 27 '25 10:02 frolic

Gm! May I please pick this up? 🙂

ultraviolet10 avatar Jul 24 '25 07:07 ultraviolet10