> For the complete documentation index, see [llms.txt](https://cryptobtcbuyer.gitbook.io/namada/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cryptobtcbuyer.gitbook.io/namada/api.md).

# Api

#### Public Api

{% embed url="<https://api.namadatools.pro>" %}

| Endpoint                                    | Description                                                                                  |                                                                                                                  | Parameters                                                                                     |
| ------------------------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `/balance/{wallet}`                         | Retrieves token amount of owner.                                                             | [Example](https://api.namadatools.pro/balance/tnam1qzpgcq8ymkxvq9j4jn6vcm64uf7znsywk55zwfvz)                     | `wallet` — The account owner's address.                                                        |
| `/delegator_delegation/{wallet}`            | Retrieves the delegator's delegation                                                         | [Example](https://api.namadatools.pro/delegator_delegation/tnam1qzpgcq8ymkxvq9j4jn6vcm64uf7znsywk55zwfvz)        | `wallet` — The delegator  address.                                                             |
| `/delegator_delegation_at/{wallet}/{epoch}` | Retrieves the delegator's delegation in a given epoch.                                       | [Example](https://api.namadatools.pro/delegator_delegation_at/tnam1qzpgcq8ymkxvq9j4jn6vcm64uf7znsywk55zwfvz/200) | <p><code>wallet</code> — The delegator  address.<br><code>epoch</code> — The epoch number.</p> |
| `/epoch`                                    | Retrieves the current epoch information.                                                     | [Example](https://api.namadatools.pro/epoch)                                                                     |                                                                                                |
| `/epoch_at_height/{height}`                 | Retrieves the epoch of the given block height.                                               | [Example](https://api.namadatools.pro/epoch_at_height/386833)                                                    | `height` — The height number.                                                                  |
| `/governance`                               | Retrieves the governance parameters.                                                         | [Example](https://api.namadatools.pro/governance)                                                                |                                                                                                |
| `/metadata/{address}/{epoch}`               | Retrieves validator's metadata, including the commission rate and max commission rate change | [Example](https://api.namadatools.pro/metadata/tnam1q9m3rqgulngj32vxaa7jcvhyzqgfhny0yg6jzrcl/100)                | <p><code>address</code> — The validator address.<br><code>epoch</code> — The epoch number.</p> |
| `/native_token`                             | Retrieves the address of the native token                                                    | [Example](https://api.namadatools.pro/native_token)                                                              |                                                                                                |
| `/pos_params`                               | Retrieves the PoS parameters.                                                                | [Example](https://api.namadatools.pro/pos_params)                                                                |                                                                                                |
| `/proposal_result/{id}`                     | Retrieves the proposal results for a given ID                                                | [Example](https://api.namadatools.pro/proposal_result/123)                                                       | `id` — The proposal id.                                                                        |
| `/proposal_votes/{id}`                      | Retrieves all the votes of a proposal for a given ID                                         | [Example](https://api.namadatools.pro/proposal_votes/123)                                                        | `id` — The proposal id.                                                                        |
| `/query_block`                              | Retrieves the last committed block data                                                      | [Example](https://api.namadatools.pro/query_block)                                                               |                                                                                                |
| `/total_staked/{epoch}`                     | Retrieves the total amount of tokens staked in a given epoch.                                | [Example](https://api.namadatools.pro/total_staked/100)                                                          | `epoch` — The epoch number.                                                                    |
| `/tx_event/{tx_hash}`                       | Retrieves events related to a transaction by its hash.                                       | [Example](https://api.namadatools.pro/tx_event/709B944C24C93AB2017F28608FC78EBD13F8B47ED07527D2010539ACBEA79C0F) | `th_hash` — The transaction hash.                                                              |
| `/validator_consensus_keys/{wallet}`        | Retrieves the validator  consensus key                                                       | [Example](https://api.namadatools.pro/validator_consensus_keys/tnam1q9m3rqgulngj32vxaa7jcvhyzqgfhny0yg6jzrcl)    | `wallet` — The validator wallet address.                                                       |
| `/validator_stake/{address}/{epoch}`        | Retrieves the given validator's stake at the given epoch.                                    | [Example](https://api.namadatools.pro/validator_stake/tnam1q9m3rqgulngj32vxaa7jcvhyzqgfhny0yg6jzrcl/100)         | <p><code>address</code> — The validator address.<br><code>epoch</code> — The epoch number.</p> |
| `/validator_state/{address}/{epoch}`        | Retrieves the state of a validator in a given epoch.                                         | [Example](https://api.namadatools.pro/validator_state/tnam1q9m3rqgulngj32vxaa7jcvhyzqgfhny0yg6jzrcl/100)         | <p><code>address</code> — The validator address.<br><code>epoch</code> — The epoch number.</p> |
