> ## Documentation Index
> Fetch the complete documentation index at: https://docs.credprotocol.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mock Chain Report

> Get a mock single-chain credit report for testing

## Overview

Returns a mock credit report for a specific blockchain network. Use this to test chain-specific integrations.

<Warning>
  **SANDBOX**: This endpoint returns mock data for testing only. Do not use for production decisions.
</Warning>

## Path Parameters

<ParamField path="address" type="string" required>
  Any Ethereum address (e.g., `0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17`)
</ParamField>

<ParamField path="chain_id" type="integer" required>
  The chain ID (e.g., `1` for Ethereum, `8453` for Base)
</ParamField>

## Supported Chain IDs

| Network   | Chain ID |
| --------- | -------- |
| Ethereum  | 1        |
| Optimism  | 10       |
| BNB Chain | 56       |
| Polygon   | 137      |
| Base      | 8453     |
| Celo      | 42220    |
| Arbitrum  | 42161    |
| Avalanche | 43114    |
| Scroll    | 534352   |
| Linea     | 59144    |

## Response

<ResponseField name="report.chains" type="array">
  Array containing single chain mock data with balances
</ResponseField>

<ResponseField name="report.summary" type="object">
  Mock summary metrics for this chain only
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/chain/1" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/chain/1',
    {
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY'
      }
    }
  );

  const report = await response.json();
  console.log(`Ethereum assets: $${report.report.summary.total_asset_usd}`);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/chain/1',
      headers={'Authorization': 'Bearer YOUR_API_KEY'}
  )

  report = response.json()
  print(f"Ethereum assets: ${report['report']['summary']['total_asset_usd']}")
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "report": {
      "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
      "timestamp": "2024-01-15T10:30:00Z",
      "summary": {
        "total_asset_usd": 85000.00,
        "count_transactions": 1800,
        "count_transfers": 900,
        "count_balances": 15
      },
      "chains": [
        {
          "chain": {
            "id": 1,
            "name": "Ethereum Mainnet",
            "has_past_activity": true,
            "current_balance_usd": 85000.00,
            "transaction_count": 1800,
            "balances": [
              {
                "symbol": "ETH",
                "name": "Ethereum",
                "usd_value": 50000.00
              },
              {
                "symbol": "USDC",
                "name": "USD Coin",
                "usd_value": 35000.00
              }
            ]
          }
        }
      ]
    }
  }
  ```
</ResponseExample>

## Related Endpoints

| Endpoint                                                       | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| `/sandbox/report/address/{address}/chain/{chain_id}/summary`   | Chain summary without balances |
| `/sandbox/report/address/{address}/chain/{chain_id}/total/usd` | Chain portfolio value only     |

## Performance

* **Response Time**: Instant (no blockchain queries)
* **Quota**: Does not count against your API quota
