import { createTRPCProxyClient, httpBatchLink } from '@trpc/client'; import { PoolCacheRouter } from 'pool-cache-interface'; import * as util from 'node:util'; const client = createTRPCProxyClient({ links: [ httpBatchLink({ url: 'http://localhost:3001/trpc', }), ], }); async function main() { const resp = await client.getPoolCacheOfPairs.query({ chainId: 1, uniswapV3Pairs: [ { tokenA: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', tokenB: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', }, ], }); console.log(util.inspect(resp, false, 4)); } main();