Skip to content

Generated schema for gamm/v1beta1/query.proto: 1 service, 33 messages in the x/gamm module.

Proto package gamm.v1beta1, part of the x/gamm module. It declares 1 service, 33 messages. Read the raw source.

Service Query

RPCRequestResponseREST pathDescription
PoolsQueryPoolsRequestQueryPoolsResponseGET /osmosis/gamm/v1beta1/pools
NumPoolsQueryNumPoolsRequestQueryNumPoolsResponseGET /osmosis/gamm/v1beta1/num_poolsDeprecated. Deprecated: please use the alternative in x/poolmanager
TotalLiquidityQueryTotalLiquidityRequestQueryTotalLiquidityResponseGET /osmosis/gamm/v1beta1/total_liquidity
PoolsWithFilterQueryPoolsWithFilterRequestQueryPoolsWithFilterResponseGET /osmosis/gamm/v1beta1/filtered_poolsPoolsWithFilter allows you to query specific pools with requested parameters
PoolQueryPoolRequestQueryPoolResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}Deprecated. Deprecated: please use the alternative in x/poolmanager
PoolTypeQueryPoolTypeRequestQueryPoolTypeResponseGET /osmosis/gamm/v1beta1/pool_type/{pool_id}PoolType returns the type of the pool. Returns "Balancer" as a string literal when the pool is a balancer pool. Errors if the pool is failed to be type caseted.
CalcJoinPoolNoSwapSharesQueryCalcJoinPoolNoSwapSharesRequestQueryCalcJoinPoolNoSwapSharesResponsenoneSimulates joining pool without a swap. Returns the amount of shares you'd get and tokens needed to provide
CalcJoinPoolSharesQueryCalcJoinPoolSharesRequestQueryCalcJoinPoolSharesResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/join_swap_exact_in
CalcExitPoolCoinsFromSharesQueryCalcExitPoolCoinsFromSharesRequestQueryCalcExitPoolCoinsFromSharesResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/exit_swap_share_amount_in
PoolParamsQueryPoolParamsRequestQueryPoolParamsResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/params
TotalPoolLiquidityQueryTotalPoolLiquidityRequestQueryTotalPoolLiquidityResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/total_pool_liquidityDeprecated. Deprecated: please use the alternative in x/poolmanager
TotalSharesQueryTotalSharesRequestQueryTotalSharesResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/total_shares
SpotPriceQuerySpotPriceRequestQuerySpotPriceResponseGET /osmosis/gamm/v1beta1/pools/{pool_id}/pricesDeprecated. SpotPrice defines a gRPC query handler that returns the spot price given a base denomination and a quote denomination.
EstimateSwapExactAmountInQuerySwapExactAmountInRequestQuerySwapExactAmountInResponseGET /osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_inDeprecated. Deprecated: please use the alternative in x/poolmanager
EstimateSwapExactAmountOutQuerySwapExactAmountOutRequestQuerySwapExactAmountOutResponseGET /osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_outDeprecated. Deprecated: please use the alternative in x/poolmanager
ParamsParamsRequestParamsResponseGET /osmosis/gamm/v1beta1/paramsParams returns gamm module params.

Messages

GammCustomQueryType

Used for WASM bindings and JSON parsing

Field#TypeRuleDescription
queryPool1QueryPoolRequestsingular
queryPools2QueryPoolsRequestsingular
queryPoolType3QueryPoolTypeRequestsingular
queryPoolsWithFilter4QueryPoolsWithFilterRequestsingular
queryNumPools5QueryNumPoolsRequestsingular
queryTotalLiquidity6QueryTotalLiquidityRequestsingular
queryTotalPoolLiquidity7QueryTotalPoolLiquidityRequestsingular
querySpotPrice8QuerySpotPriceRequestsingular
queryPoolParams9QueryPoolParamsRequestsingular
queryTotalShares10QueryTotalSharesRequestsingular

ParamsRequest

=============================== Params

No fields.

ParamsResponse

Field#TypeRuleDescription
params1Paramssingular

QueryCalcExitPoolCoinsFromSharesRequest

=============================== CalcExitPoolCoinsFromShares

Field#TypeRuleDescription
pool_id1uint64singular
share_in_amount2stringsingular

QueryCalcExitPoolCoinsFromSharesResponse

Field#TypeRuleDescription
tokens_out1cosmos.base.v1beta1.Coinrepeated

QueryCalcJoinPoolNoSwapSharesRequest

=============================== CalcJoinPoolNoSwapShares

Field#TypeRuleDescription
pool_id1uint64singular
tokens_in2cosmos.base.v1beta1.Coinrepeated

QueryCalcJoinPoolNoSwapSharesResponse

Field#TypeRuleDescription
tokens_out1cosmos.base.v1beta1.Coinrepeated
shares_out2stringsingular

QueryCalcJoinPoolSharesRequest

=============================== CalcJoinPoolShares

Field#TypeRuleDescription
pool_id1uint64singular
tokens_in2cosmos.base.v1beta1.Coinrepeated

QueryCalcJoinPoolSharesResponse

Field#TypeRuleDescription
share_out_amount1stringsingular
tokens_out2cosmos.base.v1beta1.Coinrepeated

QueryNumPoolsRequest

=============================== NumPools

No fields.

QueryNumPoolsResponse

Field#TypeRuleDescription
num_pools1uint64singular

QueryPoolParamsRequest

=============================== PoolParams

Field#TypeRuleDescription
pool_id1uint64singular

QueryPoolParamsResponse

Field#TypeRuleDescription
params1google.protobuf.Anysingular

QueryPoolRequest

=============================== Pool

Deprecated: please use the alternative in x/poolmanager

Field#TypeRuleDescription
pool_id1uint64singular

QueryPoolResponse

Deprecated: please use the alternative in x/poolmanager

Field#TypeRuleDescription
pool1google.protobuf.Anysingular

QueryPoolsRequest

=============================== Pools

Field#TypeRuleDescription
pagination2cosmos.base.query.v1beta1.PageRequestsingularpagination defines an optional pagination for the request.

QueryPoolsResponse

Field#TypeRuleDescription
pools1google.protobuf.Anyrepeated
pagination2cosmos.base.query.v1beta1.PageResponsesingularpagination defines the pagination in the response.

QueryPoolsWithFilterRequest

=============================== PoolsWithFilter

Field#TypeRuleDescription
min_liquidity1stringsingularString of the coins in single string separated by comma. Ex) 10uatom,100uosmo
pool_type2stringsingular
pagination3cosmos.base.query.v1beta1.PageRequestsingular

QueryPoolsWithFilterResponse

Field#TypeRuleDescription
pools1google.protobuf.Anyrepeated
pagination2cosmos.base.query.v1beta1.PageResponsesingularpagination defines the pagination in the response.

QueryPoolTypeRequest

=============================== PoolType

Field#TypeRuleDescription
pool_id1uint64singular

QueryPoolTypeResponse

Field#TypeRuleDescription
pool_type1stringsingular

QuerySpotPriceRequest

QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice

query.

Field#TypeRuleDescription
pool_id1uint64singular
base_asset_denom2stringsingular
quote_asset_denom3stringsingular
withSwapFee4boolsingularDEPRECATED

QuerySpotPriceResponse

QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice

query.

Field#TypeRuleDescription
spot_price1stringsingularString of the Dec. Ex) 10.203uatom

QuerySwapExactAmountInRequest

=============================== EstimateSwapExactAmountIn

Field#TypeRuleDescription
sender1stringsingular
pool_id2uint64singular
token_in3stringsingular
routes4poolmanager.v1beta1.SwapAmountInRouterepeated

QuerySwapExactAmountInResponse

Field#TypeRuleDescription
token_out_amount1stringsingular

QuerySwapExactAmountOutRequest

=============================== EstimateSwapExactAmountOut

Field#TypeRuleDescription
sender1stringsingular
pool_id2uint64singular
routes3poolmanager.v1beta1.SwapAmountOutRouterepeated
token_out4stringsingular

QuerySwapExactAmountOutResponse

Field#TypeRuleDescription
token_in_amount1stringsingular

QueryTotalLiquidityRequest

No fields.

QueryTotalLiquidityResponse

Field#TypeRuleDescription
liquidity1cosmos.base.v1beta1.Coinrepeated

QueryTotalPoolLiquidityRequest

=============================== PoolLiquidity

Deprecated: please use the alternative in x/poolmanager

Field#TypeRuleDescription
pool_id1uint64singular

QueryTotalPoolLiquidityResponse

Deprecated: please use the alternative in x/poolmanager

Field#TypeRuleDescription
liquidity1cosmos.base.v1beta1.Coinrepeated

QueryTotalSharesRequest

=============================== TotalShares

Field#TypeRuleDescription
pool_id1uint64singular

QueryTotalSharesResponse

Field#TypeRuleDescription
total_shares1cosmos.base.v1beta1.Coinsingular

Edit this page on GitHub