Skip to content

Releases: adabox-aio/koios-typescript-client

v1.0.7

03 Sep 09:56
89e0912
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.6...1.0.7

v1.0.6

v1.0.5

29 Apr 09:14
Compare
Choose a tag to compare

Koios TypeScript Client

Koios Typescript Client is a REST Client library which allows interacting with Koios Server Instances. Koios TypeScript Client Library is based on Koios Elastic Query Layer for Cardano Node by Cardano Community Guild Operators.

Koios is best described as a Decentralized and Elastic RESTful query layer for exploring data on Cardano blockchain to consume within applications/wallets/explorers/etc.

Resource and maintenance requirements for Cardano blockchain components (e.g. cardano-node, cardano-db-sync) are ever-growing. Along with that, every builder needs to identify how to query complex information from the chain.

Table of contents

Prerequisites

This project requires NodeJS (version 16 or later) and NPM.
Node and NPM are really easy to install.
To make sure you have them available on your machine,
try running the following command.

$ npm -v ; node -v
9.6.3
v16.5.0

Features

  • Synchronous REST messaging
  • Pagination (Limit and Offset)
  • Horizontal Filtering
  • Vertical Filtering
  • Sorting Supported
  • Rate Control (soon)
  • Inner Retry Mechanism upon Timeouts
Supported REST Services
Service Endpoint Description
Network Chain Tip Get the tip info about the latest block seen by chain
Genesis Info Get the Genesis parameters used to start specific era on chain
Get historical tokenomic stats Get the circulating utxo, treasury, rewards, supply and reserves in lovelace for specified epoch, all epochs if empty
Param Update Proposals Get all parameter update proposals submitted to the chain starting Shelley era
Epoch Epoch Information Get the epoch information, all epochs if no epoch specified
Epoch's Protocol Parameters Get the protocol parameters for specific epoch, returns information about all epochs if no epoch specified
Epoch's Block Protocols Get the information about block protocol distribution in epoch
Block Block List Get summarised details about all blocks (paginated - latest first)
Block Information Get detailed information about a specific block
Block Transactions Get a list of all transactions included in a provided block
Transactions Transaction Information Get detailed information about transaction(s)
Transaction UTxOs Get UTxO set (inputs/outputs) of transactions.
Transaction Metadata Get metadata information (if any) for given transaction(s)
Transaction Metadata Labels Get a list of all transaction metalabels
Submit Transaction Submit an already serialized transaction to the network.
Transaction Status (Block Confirmations) Get the number of block confirmations for a given transaction hash list
Address Address Information Get address info - balance, associated stake address (if any) and UTxO set
Address Transactions Get the transaction hash list of input address array, optionally filtering after specified block height (inclusive)
Address Assets Get the list of all the assets (policy, name and quantity) for a given address
Transactions from payment credentials Get the transaction hash list of input payment credential array, optionally filtering after specified block height (inclusive)
Stake Account Account List Get a list of all accounts
Account Information Get the account info of any (payment or staking) address
Account UTxOs Get a list of all UTxOs for a given stake address (account)
Account Information (Cached) Get the cached account information for given stake addresses (accounts)
Account Rewards Get the full rewards history (including MIR) for a stake address, or certain epoch if specified
Account Updates Get the account updates (registration, deregistration, delegation and withdrawals)
Account Addresses Get all addresses associated with an account
Account Assets Get the native asset balance of an account
Account History Get the staking history of an account
Asset Asset List Get the list of all native assets (paginated)
Asset Addresses Get the list of all addresses holding a given asset
NFT Address Get the address where specified NFT currently reside on
Asset Information Get the information of an asset including first minting & token registry metadata
Asset Information (Bulk) Get the information of a list of assets including first minting & token registry metadata
Asset History Get the mint/burn history of an asset
Policy Asset Address List Get the list of addresses with quantity for each asset on the given policy.
Policy Asset Information Get the information for all assets under the same policy
Policy Asset List Get the list of asset under the given policy (including balances)
Asset Summary Get the summary of an asset (total transactions exclude minting/total wallets include only wallets with asset balance)
Asset Transactions Get the list of all asset transaction hashes (newest first)
Pool Pool List A list of all currently registered/retiring (not retired) pools
Pool Information Current pool statuses and details for a specified list of pool ids
Pool Stake Snapshot Returns Mark, Set and Go stake snapshots for the selected pool, useful for leaderlog calculation
Pool Delegators List Return information about live delegators for a given pool.
Pool Delegators History Return information about active delegators (incl. history) for a given pool and epoch number - current epoch if not provided.
Pool Blocks Return information about blocks minted by a given pool in current epoch (or _epoch_no if provided)
Pool Stake, Block and Reward History Return information about pool stake, block and reward history in a given ep...
Read more