# Mempool

## Get Mempool Info

This endpoint retrieves various information about the node's mempool, for the selected network.

{% code title="HTTP Request" %}

```
GET https://api.whatsonchain.com/v1/<chain>/<network>/mempool/info
```

{% endcode %}

#### Example Request

{% tabs %}
{% tab title="BSV" %}

```sh
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/mempool/info"
```

{% endtab %}

{% tab title="BTC" %}

```sh
curl --location --request GET "https://api.whatsonchain.com/v1/btc/main/mempool/info"
```

{% endtab %}
{% endtabs %}

#### Example Response

{% tabs %}
{% tab title="BSV" %}

```json
{
    "size": 4204,
    "journalsize": 4194,
    "nonfinalsize": 0,
    "bytes": 4347584,
    "usage": 10844944,
    "usagedisk": 0,
    "usagecpfp": 84170,
    "nonfinalusage": 192,
    "maxmempool": 16000000000,
    "maxmempoolsizedisk": 0,
    "maxmempoolsizecpfp": 1600000000,
    "mempoolminfee": 0
}
```

{% endtab %}

{% tab title="BTC" %}

```json
{
    "loaded": true,
    "size": 12960,
    "bytes": 6856905,
    "usage": 33532464,
    "total_fee": 0.15068615,
    "maxmempool": 300000000,
    "mempoolminfee": 0.00001,
    "minrelaytxfee": 0.00001,
    "incrementalrelayfee": 0.00001,
    "unbroadcastcount": 0,
    "fullrbf": true
}
```

{% endtab %}
{% endtabs %}

**URL Parameters**

| Parameter | Description                         |
| --------- | ----------------------------------- |
| chain     | Desired blockchain: `bsv` or `btc`. |
| network   | Selected network: `main` or `test`. |

## Get Mempool Transactions

This endpoint retrieves a list of `txIds` from the node's mempool, for the selected network.

{% code title="HTTP Request" %}

```
GET https://api.whatsonchain.com/v1/<chain>/<network>/mempool/raw
```

{% endcode %}

#### Example Request

{% tabs %}
{% tab title="BSV" %}

```sh
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/mempool/raw"
```

{% endtab %}

{% tab title="BTC" %}

```sh
curl --location --request GET "https://api.whatsonchain.com/v1/btc/main/mempool/raw"
```

{% endtab %}
{% endtabs %}

#### Example Response

{% tabs %}
{% tab title="BSV" %}

```json
[
    "6525b061b0fb2e288527cbe881edd8b36297e16b2f4c28e20d2c9a8a34f94f8a",
    "df8955d5c845ce34c964f4f6969a7e7b116a4840452c1aafd23da508f4696cc6",
    ...
]
```

{% endtab %}

{% tab title="BTC" %}

```json
[
    "d1cf0c36fc45d08ca21dc11329fb8047574adeda46f731ebbe09676e6746d3e6",
    "e3288a783791d61b34931899c4be4653a8d0b60b5e431cd4f9b0a6a4f723e471",
    ...
]
```

{% endtab %}
{% endtabs %}

**URL Parameters**

| Parameter | Description                         |
| --------- | ----------------------------------- |
| chain     | Desired blockchain: `bsv` or `btc`. |
| network   | Selected network: `main` or `test`. |
