Cosmos Query API

The Query API from Cosmos — 89 operation(s) for query.

Operations 89

GET /cosmos/auth/v1beta1/account_info/{address} AccountInfo queries account info which is common to all account types. #
GET /cosmos/auth/v1beta1/accounts Accounts returns all the existing accounts. #
GET /cosmos/auth/v1beta1/accounts/{address} Account returns account details based on address. #
GET /cosmos/auth/v1beta1/address_by_id/{accountId} AccountAddressByID returns account address based on account number. #
GET /cosmos/auth/v1beta1/bech32 Bech32Prefix queries bech32Prefix #
GET /cosmos/auth/v1beta1/bech32/{addressBytes} AddressBytesToString converts Account Address bytes to string #
GET /cosmos/auth/v1beta1/bech32/{addressString} AddressStringToBytes converts Address string to bytes #
GET /cosmos/auth/v1beta1/module_accounts ModuleAccounts returns all the existing module accounts. #
GET /cosmos/auth/v1beta1/module_accounts/{name} ModuleAccountByName returns the module account info by module name #
GET /cosmos/auth/v1beta1/params Params queries all parameters. #
GET /cosmos/authz/v1beta1/grants Returns list of `Authorization`, granted to the grantee by the granter. #
GET /cosmos/authz/v1beta1/grants/grantee/{grantee} GranteeGrants returns a list of `GrantAuthorization` by grantee. #
GET /cosmos/authz/v1beta1/grants/granter/{granter} GranterGrants returns list of `GrantAuthorization`, granted by granter. #
GET /cosmos/bank/v1beta1/balances/{address} AllBalances queries the balance of all coins for a single account. #
GET /cosmos/bank/v1beta1/balances/{address}/by_denom Balance queries the balance of a single coin for a single account. #
GET /cosmos/bank/v1beta1/denom_owners/{denom} DenomOwners queries for all account addresses that own a particular token denomination. #
GET /cosmos/bank/v1beta1/denom_owners_by_query DenomOwnersByQuery queries for all account addresses that own a particular token denomination. #
GET /cosmos/bank/v1beta1/denoms_metadata DenomsMetadata queries the client metadata for all registered coin denominations. #
GET /cosmos/bank/v1beta1/denoms_metadata/{denom} DenomMetadata queries the client metadata of a given coin denomination. #
GET /cosmos/bank/v1beta1/denoms_metadata_by_query_string DenomMetadataByQueryString queries the client metadata of a given coin denomination. #
GET /cosmos/bank/v1beta1/params Params queries the parameters of x/bank module. #
GET /cosmos/bank/v1beta1/send_enabled SendEnabled queries for SendEnabled entries. #
GET /cosmos/bank/v1beta1/spendable_balances/{address} SpendableBalances queries the spendable balance of all coins for a single account. #
GET /cosmos/bank/v1beta1/spendable_balances/{address}/by_denom SpendableBalanceByDenom queries the spendable balance of a single denom for a single account. #
GET /cosmos/bank/v1beta1/supply TotalSupply queries the total supply of all coins. #
GET /cosmos/bank/v1beta1/supply/by_denom SupplyOf queries the supply of a single coin. #
GET /cosmos/consensus/v1/params Params queries the parameters of x/consensus module. #
GET /cosmos/distribution/v1beta1/community_pool CommunityPool queries the community pool coins. #
GET /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/rewards DelegationTotalRewards queries the total rewards accrued by each validator. #
GET /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/rewards/{validatorAddress} DelegationRewards queries the total rewards accrued by a delegation. #
GET /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/starting_info/{validatorAddress} DelegatorStartingInfo queries the starting info for a delegator. #
GET /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/validators DelegatorValidators queries the validators of a delegator. #
GET /cosmos/distribution/v1beta1/delegators/{delegatorAddress}/withdraw_address DelegatorWithdrawAddress queries withdraw address of a delegator. #
GET /cosmos/distribution/v1beta1/params Params queries params of the distribution module. #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress} ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress}/commission ValidatorCommission queries accumulated commission for a validator. #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress}/current_rewards ValidatorCurrentRewards queries current rewards for a validator. #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress}/historical_rewards/{period} ValidatorHistoricalRewards queries historical rewards for a validator at a specific period. #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress}/outstanding_rewards ValidatorOutstandingRewards queries rewards of a validator address. #
GET /cosmos/distribution/v1beta1/validators/{validatorAddress}/slashes ValidatorSlashes queries slash events of a validator. #
GET /cosmos/epochs/v1beta1/current_epoch CurrentEpoch provide current epoch of specified identifier #
GET /cosmos/epochs/v1beta1/epochs EpochInfos provide running epochInfos #
GET /cosmos/evidence/v1beta1/evidence AllEvidence queries all evidence. #
GET /cosmos/evidence/v1beta1/evidence/{hash} Evidence queries evidence based on evidence hash. #
GET /cosmos/feegrant/v1beta1/allowance/{granter}/{grantee} Allowance returns granted allowance to the grantee by the granter. #
GET /cosmos/feegrant/v1beta1/allowances/{grantee} Allowances returns all the grants for the given grantee address. #
GET /cosmos/feegrant/v1beta1/issued/{granter} AllowancesByGranter returns all the grants given by an address #
GET /cosmos/gov/v1/constitution Constitution queries the chain's constitution. #
GET /cosmos/gov/v1/params/{paramsType} Params queries all parameters of the gov module. #
GET /cosmos/gov/v1/proposals Proposals queries all proposals based on given status. #
GET /cosmos/gov/v1/proposals/{proposalId} Proposal queries proposal details based on ProposalID. #
GET /cosmos/gov/v1/proposals/{proposalId}/deposits Deposits queries all deposits of a single proposal. #
GET /cosmos/gov/v1/proposals/{proposalId}/deposits/{depositor} Deposit queries single deposit information based on proposalID, depositAddr. #
GET /cosmos/gov/v1/proposals/{proposalId}/tally TallyResult queries the tally of a proposal vote. #
GET /cosmos/gov/v1/proposals/{proposalId}/votes Votes queries votes of a given proposal. #
GET /cosmos/gov/v1/proposals/{proposalId}/votes/{voter} Vote queries voted information based on proposalID, voterAddr. #
GET /cosmos/gov/v1beta1/params/{paramsType} Params queries all parameters of the gov module. #
GET /cosmos/gov/v1beta1/proposals Proposals queries all proposals based on given status. #
GET /cosmos/gov/v1beta1/proposals/{proposalId} Proposal queries proposal details based on ProposalID. #
GET /cosmos/gov/v1beta1/proposals/{proposalId}/deposits Deposits queries all deposits of a single proposal. #
GET /cosmos/gov/v1beta1/proposals/{proposalId}/deposits/{depositor} Deposit queries single deposit information based on proposalID, depositor address. #
GET /cosmos/gov/v1beta1/proposals/{proposalId}/tally TallyResult queries the tally of a proposal vote. #
GET /cosmos/gov/v1beta1/proposals/{proposalId}/votes Votes queries votes of a given proposal. #
GET /cosmos/gov/v1beta1/proposals/{proposalId}/votes/{voter} Vote queries voted information based on proposalID, voterAddr. #
GET /cosmos/mint/v1beta1/annual_provisions AnnualProvisions current minting annual provisions value. #
GET /cosmos/mint/v1beta1/inflation Inflation returns the current minting inflation value. #
GET /cosmos/mint/v1beta1/params Params returns the total set of minting parameters. #
GET /cosmos/slashing/v1beta1/params Params queries the parameters of slashing module #
GET /cosmos/slashing/v1beta1/signing_infos SigningInfos queries signing info of all validators #
GET /cosmos/slashing/v1beta1/signing_infos/{consAddress} SigningInfo queries the signing info of given cons address #
GET /cosmos/staking/v1beta1/delegations/{delegatorAddr} DelegatorDelegations queries all delegations of a given delegator address. #
GET /cosmos/staking/v1beta1/delegators/{delegatorAddr}/redelegations Redelegations queries redelegations of given address. #
GET /cosmos/staking/v1beta1/delegators/{delegatorAddr}/unbonding_delegations DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address. #
GET /cosmos/staking/v1beta1/delegators/{delegatorAddr}/validators DelegatorValidators queries all validators info for given delegator address. #
GET /cosmos/staking/v1beta1/delegators/{delegatorAddr}/validators/{validatorAddr} DelegatorValidator queries validator info for given delegator validator pair. #
GET /cosmos/staking/v1beta1/historical_info/{height} HistoricalInfo queries the historical info for given height. #
GET /cosmos/staking/v1beta1/params Parameters queries the staking parameters. #
GET /cosmos/staking/v1beta1/pool Pool queries the pool info. #
GET /cosmos/staking/v1beta1/validators Validators queries all validators that match the given status. #
GET /cosmos/staking/v1beta1/validators/{validatorAddr} Validator queries validator info for given validator address. #
GET /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations ValidatorDelegations queries delegate info for given validator. #
GET /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations/{delegatorAddr} Delegation queries delegate info for given validator delegator pair. #
GET /cosmos/staking/v1beta1/validators/{validatorAddr}/delegations/{delegatorAddr}/unbonding_delegation UnbondingDelegation queries unbonding info for given validator delegator pair. #
GET /cosmos/staking/v1beta1/validators/{validatorAddr}/unbonding_delegations ValidatorUnbondingDelegations queries unbonding delegations of a validator. #
GET /cosmos/upgrade/v1beta1/applied_plan/{name} AppliedPlan queries a previously applied upgrade plan by its name. #
GET /cosmos/upgrade/v1beta1/authority Returns the account with authority to conduct upgrades #
GET /cosmos/upgrade/v1beta1/current_plan CurrentPlan queries the current upgrade plan. #
GET /cosmos/upgrade/v1beta1/module_versions ModuleVersions queries the list of module versions from state. #
GET /cosmos/upgrade/v1beta1/upgraded_consensus_state/{lastHeight} UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cosmos-query-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cosmos-query-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cosmos SDK - gRPC Gateway docs Query API
  description: A REST interface for state queries.
  version: 1.0.0
servers:
- url: https://lcd.cosmos.network/
tags:
- name: Query
paths:
  /cosmos/auth/v1beta1/account_info/{address}:
    get:
      summary: AccountInfo queries account info which is common to all account types.
      operationId: AccountInfo
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  info:
                    description: info is the account info which is represented by BaseAccount.
                    type: object
                    properties:
                      address:
                        type: string
                      pubKey:
                        type: object
                        properties:
                          '@type':
                            type: string
                            description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                        additionalProperties: {}
                        description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
                      accountNumber:
                        type: string
                        format: uint64
                      sequence:
                        type: string
                        format: uint64
                description: QueryAccountInfoResponse is the Query/AccountInfo response type.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                  message:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                          description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                      additionalProperties: {}
                      description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
      parameters:
      - name: address
        description: address is the account address string.
        in: path
        required: true
        schema:
          type: string
      tags:
      - Query
  /cosmos/auth/v1beta1/accounts:
    get:
      summary: Accounts returns all the existing accounts.
      description: 'When called from another module, this query might consume a high amount of

        gas if the pagination field is incorrectly set.'
      operationId: Accounts
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  accounts:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                          description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                      additionalProperties: {}
                      description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
                    title: accounts are the existing accounts
                  pagination:
                    description: pagination defines the pagination in the response.
                    type: object
                    properties:
                      nextKey:
                        type: string
                        format: byte
                        description: 'next_key is the key to be passed to PageRequest.key to

                          query the next page most efficiently. It will be empty if

                          there are no more results.'
                      total:
                        type: string
                        format: uint64
                        title: 'total is total number of results available if PageRequest.count_total

                          was set, its value is undefined otherwise'
                description: QueryAccountsResponse is the response type for the Query/Accounts RPC method.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                  message:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                          description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                      additionalProperties: {}
                      description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
      parameters:
      - name: pagination.key
        description: 'key is a value returned in PageResponse.next_key to begin

          querying the next page most efficiently. Only one of offset or key

          should be set.'
        in: query
        required: false
        schema:
          type: string
          format: byte
      - name: pagination.offset
        description: 'offset is a numeric offset that can be used when key is unavailable.

          It is less efficient than using key. Only one of offset or key should

          be set.'
        in: query
        required: false
        schema:
          type: string
          format: uint64
      - name: pagination.limit
        description: 'limit is the total number of results to be returned in the result page.

          If left empty it will default to a value to be set by each app.'
        in: query
        required: false
        schema:
          type: string
          format: uint64
      - name: pagination.countTotal
        description: 'count_total is set to true  to indicate that the result set should include

          a count of the total number of items available for pagination in UIs.

          count_total is only respected when offset is used. It is ignored when key

          is set.'
        in: query
        required: false
        schema:
          type: boolean
      - name: pagination.reverse
        description: reverse is set to true if results are to be returned in the descending order.
        in: query
        required: false
        schema:
          type: boolean
      tags:
      - Query
  /cosmos/auth/v1beta1/accounts/{address}:
    get:
      summary: Account returns account details based on address.
      operationId: Account
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  account:
                    type: object
                    properties:
                      '@type':
                        type: string
                        description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                    additionalProperties: {}
                    description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
                description: QueryAccountResponse is the response type for the Query/Account RPC method.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                  message:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                          description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
                      additionalProperties: {}
                      description: "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
      parameters:
      - name: address
        description: address defines the address to query for.
        in: path
        required: true
        schema:
          type: string
      tags:
      - Query
  /cosmos/auth/v1beta1/address_by_id/{accountId}:
    get:
      summary: AccountAddressByID returns account address based on account number.
      operationId: AccountAddressByID
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  accountAddress:
                    type: string
                title: QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                  message:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        '@type':
                          type: string
                          description: "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary f

# --- truncated at 32 KB (601 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/cosmos/refs/heads/main/openapi/cosmos-query-api-openapi.yml