3.1.0 • Published 5 months ago

@namada/indexer-client v3.1.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
5 months ago

@namada/indexer-client@3.1.0

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @namada/indexer-client@3.1.0 --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to http://localhost:5001

ClassMethodHTTP requestDescription
DefaultApiapiV1AccountAddressGetGET /api/v1/account/{address}Get the all the tokens balances of an address
DefaultApiapiV1BlockHeightValueGetGET /api/v1/block/height/{value}Get the block by height
DefaultApiapiV1BlockTimestampValueGetGET /api/v1/block/timestamp/{value}Get the block by timestamp
DefaultApiapiV1ChainBlockLatestGetGET /api/v1/chain/block/latestGet the latest block processed by the chain crawler
DefaultApiapiV1ChainCirculatingSupplyGetGET /api/v1/chain/circulating-supplyGet the circulating supply of the native token at the given epoch
DefaultApiapiV1ChainEpochLatestGetGET /api/v1/chain/epoch/latestGet the latest epoch processed by the chain crawler
DefaultApiapiV1ChainHistoryGetGET /api/v1/chain/historyGet a paginated list of transaction for a list of addresses
DefaultApiapiV1ChainInnerTxIdGetGET /api/v1/chain/inner/{tx_id}Get the inner transaction by hash
DefaultApiapiV1ChainParametersGetGET /api/v1/chain/parametersGet chain parameters
DefaultApiapiV1ChainRpcUrlGetGET /api/v1/chain/rpc-urlGet rpc url that indexer connects to
DefaultApiapiV1ChainTokenGetGET /api/v1/chain/tokenGet chain tokens
DefaultApiapiV1ChainTokenSupplyGetGET /api/v1/chain/token-supplyGet the supply of some token at the given epoch
DefaultApiapiV1ChainWrapperTxIdGetGET /api/v1/chain/wrapper/{tx_id}Get the wrapper transaction by hash
DefaultApiapiV1CrawlersTimestampsGetGET /api/v1/crawlers/timestampsGet timestamps of the last activity of the crawlers
DefaultApiapiV1GasEstimateGetGET /api/v1/gas/estimateGet an estimate for a transaction
DefaultApiapiV1GasPriceGetGET /api/v1/gas-priceGet all the gas prices
DefaultApiapiV1GasPriceTokenGetGET /api/v1/gas-price/{token}Get the gas price per token type
DefaultApiapiV1GovProposalAllGetGET /api/v1/gov/proposal/allGet a list of all governance proposals
DefaultApiapiV1GovProposalGetGET /api/v1/gov/proposalGet a list of governance proposals
DefaultApiapiV1GovProposalIdDataGetGET /api/v1/gov/proposal/{id}/dataGet a governance proposal data by proposal id
DefaultApiapiV1GovProposalIdGetGET /api/v1/gov/proposal/{id}Get a governance proposal by proposal id
DefaultApiapiV1GovProposalIdVotesAddressGetGET /api/v1/gov/proposal/{id}/votes/{address}Get all the votes for a governance proposal from an address
DefaultApiapiV1GovProposalIdVotesGetGET /api/v1/gov/proposal/{id}/votesGet all the votes for a governance proposal
DefaultApiapiV1GovVoterAddressVotesGetGET /api/v1/gov/voter/{address}/votesGet all the votes from a voter
DefaultApiapiV1IbcRateLimitsGetGET /api/v1/ibc/rate-limitsGet the rate limits of IBC tokens
DefaultApiapiV1IbcTokenFlowsGetGET /api/v1/ibc/token-flowsGet the withdraw and deposit rates of IBC tokens
DefaultApiapiV1IbcTokenThroughputAddressGetGET /api/v1/ibc/token-throughput/{address}Get the throughput of the given IBC token
DefaultApiapiV1IbcTxIdStatusGetGET /api/v1/ibc/{tx_id}/statusGet the status of an IBC transfer by tx id
DefaultApiapiV1MaspAggregatesGetGET /api/v1/masp/aggregatesGet inflows and outflows from/to the MASP pool
DefaultApiapiV1PosBondAddressGetGET /api/v1/pos/bond/{address}Get all the bonds for an address
DefaultApiapiV1PosMergedBondsAddressGetGET /api/v1/pos/merged-bonds/{address}Get all the bonds for an address, with merged amounts, regardless of the status
DefaultApiapiV1PosMergedUnbondsAddressGetGET /api/v1/pos/merged-unbonds/{address}Get all the unbonds for an an address with merged withdraw amounts
DefaultApiapiV1PosRewardAddressGetGET /api/v1/pos/reward/{address}Get all the rewards for an address
DefaultApiapiV1PosRewardDelegatorAddressValidatorAddressEpochGetGET /api/v1/pos/reward/{delegator_address}/{validator_address}/{epoch}Get rewards for a single delegator for a specific epoch
DefaultApiapiV1PosUnbondAddressGetGET /api/v1/pos/unbond/{address}Get all the unbonds for an an address
DefaultApiapiV1PosValidatorAllGetGET /api/v1/pos/validator/allGet all validators, non paginated
DefaultApiapiV1PosValidatorGetGET /api/v1/pos/validatorGet all validators, paginated
DefaultApiapiV1PosVotingPowerGetGET /api/v1/pos/voting-powerGet the total voting power
DefaultApiapiV1PosWithdrawAddressGetGET /api/v1/pos/withdraw/{address}Get all the withdraws for an address at a specific epoch
DefaultApiapiV1RevealedPublicKeyAddressGetGET /api/v1/revealed-public-key/{address}Get revealed public key for an address if exists
DefaultApihealthGetGET /health

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

3.1.0

5 months ago

3.0.2

6 months ago

3.0.1

6 months ago

2.5.4

6 months ago

2.5.3

6 months ago

3.0.0

6 months ago

2.5.2

7 months ago

2.5.0

7 months ago

2.4.4

8 months ago

2.4.3

8 months ago

2.4.2

8 months ago

2.4.1

8 months ago

2.4.0

8 months ago

2.3.0

8 months ago

2.2.0

9 months ago

2.1.0

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.1.8

9 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.31

11 months ago

0.0.30

12 months ago

0.0.29

12 months ago

0.0.28

1 year ago