> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Oracle

oracle apiを介してチェーンをクエリするためのコードスニペット例。

## gRPCを使用する

### oracleに関連するパラメータを取得する

```ts theme={null}
import { ChainGrpcOracleApi } from "@injectivelabs/sdk-ts/client/chain";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

const endpoints = getNetworkEndpoints(Network.Testnet);
const chainGrpcOracleApi = new ChainGrpcOracleApi(endpoints.grpc);

const moduleParams = await chainGrpcOracleApi.fetchModuleParams();

console.log(moduleParams);
```
