# Relayer gas tank & transactions API

> Read per-chain gas tank balances and funding/relayed history with your app API key

Use these **read APIs** on the dedicated **Relayer** host from your backend to show relayer gas tank balance and transaction history in **your** product UI.

They use the **same app API key** as Relayer JSON-RPC — not dashboard JWT login.

## Auth

Pass your dashboard app API key as:

- Query: `?apikey=YOUR_APP_API_KEY`, or
- Header: `x-api-key: YOUR_APP_API_KEY`

Base URL (Relayer service): `https://relayer.abstraxn.com`

## Get gas tank balances

```http
GET /api/v1/account/gas-tank?apikey=YOUR_APP_API_KEY
```

Optional: `chainId` to return one chain only.

```bash
curl "https://relayer.abstraxn.com/api/v1/account/gas-tank?apikey=YOUR_APP_API_KEY&chainId=8453"
```

Example `result`:

```json
{
  "appId": "…",
  "appRelayerId": "…",
  "relayerName": "My Relayer",
  "balances": [
    {
      "chainId": 8453,
      "balance": "0.42",
      "blockedBalance": "0.01",
      "spendable": 0.41,
      "threshold": "0.05"
    }
  ]
}
```

Native amounts are per-chain (ETH / MATIC / BNB / etc. depending on network).

## List funding transactions

Deposit / withdraw history for the gas tank:

```http
GET /api/v1/account/funding-transactions?apikey=YOUR_APP_API_KEY&type=all&page=1&limit=20
```

| Param | Description |
| --- | --- |
| `type` | `deposit`, `withdraw`, or `all` (required) |
| `page`, `limit` | Pagination |
| `chainId` | Optional chain filter |
| `s` | Optional hash search |

## List relayed transactions

Meta-transactions submitted through your app relayer:

```http
GET /api/v1/account/relayed-transactions?apikey=YOUR_APP_API_KEY&page=1&limit=20
```

Optional: `chainId`, `s` (hash search).

## Typical app flow

1. User opens your “Gas tank / Relayer activity” screen.
2. Your backend calls `gas-tank` + funding/relayed lists on the Relayer host with your API key.
3. You render balances and history in your UI.

Do **not** expose your API key in a public browser bundle. Call these from your server.

Related: [Relayer guide](/guides/relayer).
