# Ledger::get_live_rows_for_ref()

Live awards for a reference and everything beneath it (`sk_post:34` also matches `sk_post:34:comment:9`).

```php
get_live_rows_for_ref( string $ref, int $user_id = 0 ): array
```

## Parameters

- `$ref` (string) Reference.
- `$user_id` (int) Limit to one member (0 = anyone).

## Return

`array<int, object>` Ledger rows, oldest first.

## Changelog

| Version | Description |
| --- | --- |
| 1.4.0 | Introduced |
