MCPcopy Create free account
hub / github.com/MiloOweno/vector-mesh / getBlockQueryKey

Function getBlockQueryKey

packages/core/src/query/getBlock.ts:66–75  ·  view source on GitHub ↗
(
  options: GetBlockOptions<includeTransactions, blockTag, config, chainId> = {},
)

Source from the content-addressed store, hash-verified

64> = GetBlockQueryFnData<includeTransactions, blockTag, config, chainId>
65
66export function getBlockQueryKey<
67 config extends Config,
68 chainId extends config['chains'][number]['id'],
69 includeTransactions extends boolean = false,
70 blockTag extends BlockTag = 'latest',
71>(
72 options: GetBlockOptions<includeTransactions, blockTag, config, chainId> = {},
73) {
74 return ['block', filterQueryOptions(options)] as const
75}
76
77export type GetBlockQueryKey<
78 includeTransactions extends boolean,

Callers 1

getBlockQueryOptionsFunction · 0.85

Calls 1

filterQueryOptionsFunction · 0.85

Tested by

no test coverage detected