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

# Transaction Analytics

> Get transaction analytics broken down by status: pending, processing, failed, and approved.

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField query="from" type="string" required>
  Start date. ISO 8601 format: `2026-03-01`
</ParamField>

<ParamField query="to" type="string" required>
  End date. ISO 8601 format: `2026-03-31`
</ParamField>

<ParamField query="granularity" type="string">
  Time bucket size. Accepted values: `hour`, `day`, `week`, `month`. Default: `day`
</ParamField>

<ParamField query="asset" type="string">
  Filter by asset symbol (e.g. `USDC`, `ETH`).
</ParamField>

<ParamField query="network" type="string">
  Filter by network (e.g. `polygon`, `ethereum`, `solana`).
</ParamField>

<Accordion title="Response Type Definitions">
  ```typescript theme={null}
  interface TransactionAnalyticsResponse {
    pendingTransactions: any[];
    processingTransactions: any[];
    failedTransactions: any[];
    approvedTransactions: any[];
    status: boolean;
    message: string;
  }
  ```
</Accordion>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://crypto-api.yativo.com/api/v1/analytics/transaction-analytics' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "pendingTransactions": [],
    "processingTransactions": [],
    "failedTransactions": [],
    "approvedTransactions": [],
    "status": true,
    "message": "Transaction Analytics Listed Successfully"
  }
  ```
</ResponseExample>
