solana-bankingstage-dashboard/templates/_txlist.html

83 lines
2.8 KiB
HTML

<table id="txlist" class="table table-sm table-nowrap card-table">
<thead>
<tr>
<th class="text-muted c-pointer">#</th>
<th class="text-muted">In block</th>
<th class="text-muted">Timestamp</th>
<th class="text-muted">Transaction Signature</th>
<th class="text-muted" title="Tx appeared in N slots">Slots</th>
<th class="text-muted">Errors</th>
<th class="text-muted text-end table-cell-width-number">CU requested</th>
<th class="text-muted text-end table-cell-width-number">Prio Fees</th>
</tr>
</thead>
<tbody class="list">
{% if limit_exceeded %}
<tr>
<td colspan="7" class="text-warning">Result was truncated</td>
</tr>
{% endif %}
{% for tx in transactions %}
<tr>
<td>{{ tx.pos }}</td>
{% if tx.was_included_in_block %}
<td><span class="badge bg-success-soft">Included</span></td>
{% else %}
<td><span class="badge bg-warning-soft">Excluded</span></td>
{% endif %}
<td>
<div class="align-items-center">
<span class="font-monospace text-muted">
{{ tx.utc_timestamp or '--' }}
</span>
</div>
</td>
<td>
<div class="d-flex align-items-center font-monospace" style="width:20em">
<div class="text-truncate">
<a href="/transaction/{{tx.signature}}">{{ tx.signature }}</a>
</div>
</div>
</td>
<td class="d-flex font-monospace">
{{ '#' * tx.num_relative_slots }}
</td>
<td>
<div class="d-flex align-items-left">
<table>
{% for error in tx.errors_array %}
<tr>
<td>
<span class="font-monospace text-danger" title="Slot {{ error.slot | slotnumber }}">
{{ error.count | count }}x&nbsp;&nbsp;{{ error.error }}
</span>
</td>
</tr>
{% endfor %}
{% if not tx.errors_array %}
<tr>
<td>
<span class="font-monospace text-muted">--</span>
</td>
</tr>
{% endif %}
</table>
</div>
</td>
<td class="text-end font-monospace">
<div class="font-monospace text-primary">
{{ tx.cu_requested | lamports }}
</div>
</td>
<td class="text-end font-monospace">
<div class="font-monospace text-primary">
{{ tx.prioritization_fees | lamports }}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>