PHPackages                             cardano-blockhouse/cardano-koios-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cardano-blockhouse/cardano-koios-api

ActiveLibrary[API Development](/categories/api)

cardano-blockhouse/cardano-koios-api
====================================

This package creates a new facade to access the Cardano Koios API.

12PHP

Since Aug 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cardano-blockhouse/cardano-koios-api)[ Packagist](https://packagist.org/packages/cardano-blockhouse/cardano-koios-api)[ RSS](/packages/cardano-blockhouse-cardano-koios-api/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

cardano-koios-api
=================

[](#cardano-koios-api)

cardano-koios-api is a Laravel package to use the cardano Koios API in your laravel project and to access the blockchain data of cardano.

- [cardano-koios-api](#iamx-wallet-pro)
    - [Installation](#installation)
    - [Configuration](#configuration)
    - [Usage](#usage)
        - [Horizontal filtering](#horizontal-filtering)
        - [Pagination](#pagination)
        - [Examples](#examples)
        - [Endpoints](#endpoints)
            - [Network](#network)
            - [Epoch](#epoch)
            - [Block](#block)
            - [Transactions](#transactions)
            - [Address](#address)
            - [Asset](#asset)
            - [Pool](#pool)
            - [Script](#script)
            - [Stake Account](#stake-account)
    - [Bugs, Suggestions](#bugs-and-suggestions)
    - [Copyright and License](#copyright-and-license)

Installation
------------

[](#installation)

Install the current version of the `cardano-blockhouse/cardano-koios-api` package via composer:

```
    composer require cardano-blockhouse/cardano-koios-api:dev-main
```

Configuration
-------------

[](#configuration)

Usage
-----

[](#usage)

Include the Facade KoiosApi in the controller where you like to query the Koios API.

```
use CardanoBlockhouse\CardanoKoiosApi\Facades\KoiosApi;
```

Choose the network to query

```
KoiosApi::setNetwork('mainnet'); // Not needed to set as this is the default option
KoiosApi::setNetwork('preview');
KoiosApi::setNetwork('preprod');
```

### Horizontal filtering

[](#horizontal-filtering)

Example

```
$horizontal_filter = ['epoch=eq.250', 'epoch_slot=lt.180'];
```

### Pagination

[](#pagination)

Pagination is automatically done in the backend in chunks of 500 rows per API call.

### Examples

[](#examples)

Fetch Blocks

```
