Skip to content

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

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

Service Query

RPCRequestResponseREST pathDescription
ParamsParamsRequestParamsResponseGET /osmosis/poolmanager/v1beta1/Params
EstimateSwapExactAmountInEstimateSwapExactAmountInRequestEstimateSwapExactAmountInResponseGET /osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_inEstimates swap amount out given in.
EstimateSwapExactAmountInWithPrimitiveTypesEstimateSwapExactAmountInWithPrimitiveTypesRequestEstimateSwapExactAmountInResponsenoneEstimateSwapExactAmountInWithPrimitiveTypes is an alternative query for EstimateSwapExactAmountIn. Supports query via GRPC-Gateway by using primitive types instead of repeated structs. Each index in the routes_pool_id field corresponds to the respective routes_token_out_denom value, thus they are required to have the same length and are grouped together as pairs. example usage: http://0.0.0.0:1317/osmosis/poolmanager/v1beta1/1/estimate/ swap_exact_amount_in_with_primitive_types?token_in=100000stake&routes_token_out_denom=uatom &routes_token_out_denom=uion&routes_pool_id=1&routes_pool_id=2
EstimateSinglePoolSwapExactAmountInEstimateSinglePoolSwapExactAmountInRequestEstimateSwapExactAmountInResponsenone
EstimateSwapExactAmountOutEstimateSwapExactAmountOutRequestEstimateSwapExactAmountOutResponseGET /osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_outEstimates swap amount in given out.
EstimateSwapExactAmountOutWithPrimitiveTypesEstimateSwapExactAmountOutWithPrimitiveTypesRequestEstimateSwapExactAmountOutResponsenoneEstimates swap amount in given out.
EstimateSinglePoolSwapExactAmountOutEstimateSinglePoolSwapExactAmountOutRequestEstimateSwapExactAmountOutResponsenone
NumPoolsNumPoolsRequestNumPoolsResponseGET /osmosis/poolmanager/v1beta1/num_poolsReturns the total number of pools existing in Osmosis.
PoolPoolRequestPoolResponseGET /osmosis/poolmanager/v1beta1/pools/{pool_id}Pool returns the Pool specified by the pool id
AllPoolsAllPoolsRequestAllPoolsResponseGET /osmosis/poolmanager/v1beta1/all-poolsAllPools returns all pools on the Osmosis chain sorted by IDs.
ListPoolsByDenomListPoolsByDenomRequestListPoolsByDenomResponseGET /osmosis/poolmanager/v1beta1/list-pools-by-denomListPoolsByDenom return all pools by denom
SpotPriceSpotPriceRequestSpotPriceResponseGET /osmosis/poolmanager/pools/{pool_id}/pricesSpotPrice defines a gRPC query handler that returns the spot price given a base denomination and a quote denomination.
TotalPoolLiquidityTotalPoolLiquidityRequestTotalPoolLiquidityResponseGET /osmosis/poolmanager/v1beta1/pools/{pool_id}/total_pool_liquidityTotalPoolLiquidity returns the total liquidity of the specified pool.
TotalLiquidityTotalLiquidityRequestTotalLiquidityResponseGET /osmosis/poolmanager/v1beta1/total_liquidityTotalLiquidity returns the total liquidity across all pools.
TotalVolumeForPoolTotalVolumeForPoolRequestTotalVolumeForPoolResponseGET /osmosis/poolmanager/v1beta1/pools/{pool_id}/total_volumeTotalVolumeForPool returns the total volume of the specified pool.
TradingPairTakerFeeTradingPairTakerFeeRequestTradingPairTakerFeeResponseGET /osmosis/poolmanager/v1beta1/trading_pair_takerfeeTradingPairTakerFee returns the taker fee for a given set of denoms
EstimateTradeBasedOnPriceImpactEstimateTradeBasedOnPriceImpactRequestEstimateTradeBasedOnPriceImpactResponseGET /osmosis/poolmanager/v1beta1/{pool_id}/estimate_tradeEstimateTradeBasedOnPriceImpact returns an estimated trade based on price impact, if a trade cannot be estimated a 0 input and 0 output would be returned.
AllTakerFeeShareAgreementsAllTakerFeeShareAgreementsRequestAllTakerFeeShareAgreementsResponseGET /osmosis/poolmanager/v1beta1/all_taker_fee_share_agreementsAllTakerFeeShareAgreements returns all taker fee share agreements. A taker fee share agreement includes the denom of the denom getting the taker fees, the percent of the taker fees that the denom gets when it is in the route being traded against, and the address that the taker fees are sent to at epoch.
TakerFeeShareAgreementFromDenomTakerFeeShareAgreementFromDenomRequestTakerFeeShareAgreementFromDenomResponsenoneTakerFeeShareAgreementFromDenom returns the taker fee share agreement for a given denom. A taker fee share agreement includes the denom of the denom getting the taker fees, the percent of the taker fees that the denom gets when it is in the route being traded against, and the address that the taker fees are sent to at epoch.
TakerFeeShareDenomsToAccruedValueTakerFeeShareDenomsToAccruedValueRequestTakerFeeShareDenomsToAccruedValueResponsenoneTakerFeeShareDenomsToAccruedValue returns the accrued value (as an Int) of the given taker fee denom (the collected fees) for the given fee share denom (the denom with the taker fee share agreement)
AllTakerFeeShareAccumulatorsAllTakerFeeShareAccumulatorsRequestAllTakerFeeShareAccumulatorsResponseGET /osmosis/poolmanager/v1beta1/all_taker_fee_share_accumulatorsAllTakerFeeShareAccumulators returns all taker fee share accumulators. A taker fee share accumulator includes the denom of the denom getting the taker fees, and an accumulated value of coins that the denom has accrued since the last time it was distributed in the epoch prior.
RegisteredAlloyedPoolFromDenomRegisteredAlloyedPoolFromDenomRequestRegisteredAlloyedPoolFromDenomResponsenoneRegisteredAlloyedPoolFromDenom returns the registered alloyed pool state from the given denom. The registered alloyed pool contains the pool's contract address, along with the current distribution composition of taker fee share denoms within the alloyed pool.
RegisteredAlloyedPoolFromPoolIdRegisteredAlloyedPoolFromPoolIdRequestRegisteredAlloyedPoolFromPoolIdResponsenoneRegisteredAlloyedPoolFromPoolId returns the registered alloyed pool state from the given pool id. The registered alloyed pool contains the pool's contract address, along with the current distribution composition of taker fee share denoms within the alloyed pool.
AllRegisteredAlloyedPoolsAllRegisteredAlloyedPoolsRequestAllRegisteredAlloyedPoolsResponseGET /osmosis/poolmanager/v1beta1/all_registered_alloyed_poolsAllRegisteredAlloyedPools returns all registered alloyed pools. The registered alloyed pool contains the pool's contract address, along with the current distribution composition of taker fee share denoms within the alloyed pool.

Messages

AllPoolsRequest

=============================== AllPools

No fields.

AllPoolsResponse

Field#TypeRuleDescription
pools1google.protobuf.Anyrepeated

AllRegisteredAlloyedPoolsRequest

=============================== AllRegisteredAlloyedPoolsRequest

No fields.

AllRegisteredAlloyedPoolsResponse

Field#TypeRuleDescription
contract_states1AlloyContractTakerFeeShareStaterepeated

AllTakerFeeShareAccumulatorsRequest

=============================== AllTakerFeeShareAccumulatorsRequest

No fields.

AllTakerFeeShareAccumulatorsResponse

Field#TypeRuleDescription
taker_fee_skim_accumulators1TakerFeeSkimAccumulatorrepeated

AllTakerFeeShareAgreementsRequest

=============================== AllTakerFeeShareAgreementsRequest

No fields.

AllTakerFeeShareAgreementsResponse

Field#TypeRuleDescription
taker_fee_share_agreements1TakerFeeShareAgreementrepeated

EstimateSinglePoolSwapExactAmountInRequest

Field#TypeRuleDescription
pool_id1uint64singular
token_in2stringsingular
token_out_denom3stringsingular

EstimateSinglePoolSwapExactAmountOutRequest

Field#TypeRuleDescription
pool_id1uint64singular
token_in_denom2stringsingular
token_out3stringsingular

EstimateSwapExactAmountInRequest

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

Field#TypeRuleDescription
sender1stringsingularDEPRECATED
pool_id2uint64singular
token_in3stringsingular
routes4SwapAmountInRouterepeated

EstimateSwapExactAmountInResponse

Field#TypeRuleDescription
token_out_amount1stringsingular

EstimateSwapExactAmountInWithPrimitiveTypesRequest

Field#TypeRuleDescription
pool_id1uint64singular
token_in2stringsingular
routes_pool_id3uint64repeated
routes_token_out_denom4stringrepeated

EstimateSwapExactAmountOutRequest

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

Field#TypeRuleDescription
sender1stringsingularDEPRECATED
pool_id2uint64singular
routes3SwapAmountOutRouterepeated
token_out4stringsingular

EstimateSwapExactAmountOutResponse

Field#TypeRuleDescription
token_in_amount1stringsingular

EstimateSwapExactAmountOutWithPrimitiveTypesRequest

Field#TypeRuleDescription
pool_id1uint64singular
routes_pool_id2uint64repeated
routes_token_in_denom3stringrepeated
token_out4stringsingular

EstimateTradeBasedOnPriceImpactRequest

=============================== EstimateTradeBasedOnPriceImpact

EstimateTradeBasedOnPriceImpactRequest represents a request to estimate a

trade for Balancer/StableSwap/Concentrated liquidity pool types based on the

given parameters.

Field#TypeRuleDescription
from_coin1cosmos.base.v1beta1.Coinsingularfrom_coin is the total amount of tokens that the user wants to sell.
to_coin_denom2stringsingularto_coin_denom is the denom identifier of the token that the user wants to buy.
pool_id3uint64singularpool_id is the identifier of the liquidity pool that the trade will occur on.
max_price_impact4stringsingularmax_price_impact is the maximum percentage that the user is willing to affect the price of the liquidity pool.
external_price5stringsingularexternal_price is an optional external price that the user can enter. It adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at any time.

EstimateTradeBasedOnPriceImpactResponse

EstimateTradeBasedOnPriceImpactResponse represents the response data

for an estimated trade based on price impact. If a trade fails to be

estimated the response would be 0,0 for input_coin and output_coin and will

not error.

Field#TypeRuleDescription
input_coin1cosmos.base.v1beta1.Coinsingularinput_coin is the actual input amount that would be tradeable under the specified price impact.
output_coin2cosmos.base.v1beta1.Coinsingularoutput_coin is the amount of tokens of the ToCoinDenom type that will be received for the actual InputCoin trade.

ListPoolsByDenomRequest

=======================================================

ListPoolsByDenomRequest

Field#TypeRuleDescription
denom1stringsingular

ListPoolsByDenomResponse

Field#TypeRuleDescription
pools1google.protobuf.Anyrepeated

NumPoolsRequest

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

No fields.

NumPoolsResponse

Field#TypeRuleDescription
num_pools1uint64singular

ParamsRequest

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

No fields.

ParamsResponse

Field#TypeRuleDescription
params1Paramssingular

PoolRequest

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

Field#TypeRuleDescription
pool_id1uint64singular

PoolResponse

Field#TypeRuleDescription
pool1google.protobuf.Anysingular

RegisteredAlloyedPoolFromDenomRequest

=============================== RegisteredAlloyedPoolFromDenomRequest

Field#TypeRuleDescription
denom1stringsingular

RegisteredAlloyedPoolFromDenomResponse

Field#TypeRuleDescription
contract_state1AlloyContractTakerFeeShareStatesingular

RegisteredAlloyedPoolFromPoolIdRequest

=============================== RegisteredAlloyedPoolFromPoolIdRequest

Field#TypeRuleDescription
pool_id1uint64singular

RegisteredAlloyedPoolFromPoolIdResponse

Field#TypeRuleDescription
contract_state1AlloyContractTakerFeeShareStatesingular

SpotPriceRequest

==========================================================

SpotPriceRequest defines the gRPC request structure for a SpotPrice

query.

Field#TypeRuleDescription
pool_id1uint64singular
base_asset_denom2stringsingular
quote_asset_denom3stringsingular

SpotPriceResponse

SpotPriceResponse defines the gRPC response structure for a SpotPrice

query.

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

TakerFeeShareAgreementFromDenomRequest

=============================== TakerFeeShareAgreementFromDenomRequest

Field#TypeRuleDescription
denom1stringsingular

TakerFeeShareAgreementFromDenomResponse

Field#TypeRuleDescription
taker_fee_share_agreement1TakerFeeShareAgreementsingular

TakerFeeShareDenomsToAccruedValueRequest

=============================== TakerFeeShareDenomsToAccruedValueRequest

Field#TypeRuleDescription
denom1stringsingular
takerFeeDenom2stringsingular

TakerFeeShareDenomsToAccruedValueResponse

Field#TypeRuleDescription
amount1stringsingular

TotalLiquidityRequest

=============================== TotalLiquidity

No fields.

TotalLiquidityResponse

Field#TypeRuleDescription
liquidity1cosmos.base.v1beta1.Coinrepeated

TotalPoolLiquidityRequest

=============================== TotalPoolLiquidity

Field#TypeRuleDescription
pool_id1uint64singular

TotalPoolLiquidityResponse

Field#TypeRuleDescription
liquidity1cosmos.base.v1beta1.Coinrepeated

TotalVolumeForPoolRequest

=============================== TotalVolumeForPool

Field#TypeRuleDescription
pool_id1uint64singular

TotalVolumeForPoolResponse

Field#TypeRuleDescription
volume1cosmos.base.v1beta1.Coinrepeated

TradingPairTakerFeeRequest

=============================== TradingPairTakerFee

Field#TypeRuleDescription
denom_01stringsingular
denom_12stringsingular

TradingPairTakerFeeResponse

Field#TypeRuleDescription
taker_fee1stringsingular

Edit this page on GitHub