cosmology-tech / telescope

A TypeScript Transpiler for Cosmos Protobufs ⚛️
https://cosmology.zone/products/telescope
Apache License 2.0
146 stars 43 forks source link

Query by block height #356

Open dirtyshab opened 1 year ago

dirtyshab commented 1 year ago

Trying to query by block height by doing the following:

const client = await osmosis.ClientFactory.createRPCQueryClient({
  rpcEndpoint: {
    url: "https://rpc-osmosis-ia.cosmosia.notional.ventures:443",
    headers: { x_cosmos_block_height: "9179139" },
  },
});

const pool = await client.osmosis.gamm.v1beta1.pool({
  poolId: new Long(1),
})

but doesn't work. Can be done from CLI with

osmosisd q gamm pool 1 --height 9179139 --node https://rpc-osmosis-ia.cosmosia.notional.ventures:443
dirtyshab commented 1 year ago

bump

Segfaultd commented 4 months ago

Hey, any specific workaround for that? Trying to do the same.