{% extends "base.html" %} {% block title %} {{ block.super }} - Channel Card{% endblock %} {% block content %} {% load humanize %} {% if channel %}

{% if channel.alias != "" %}{{ channel.alias }} | {{ channel.remote_pubkey }}{% else %}{{ channel.remote_pubkey }}{% endif %} {{ chan_id }} {{ channel.short_chan_id }}

{% if peer_info %}📍{{ peer_info.address }} | Channel Updates: {{ channel.num_updates|intcomma }} | {% if not channel.is_open %}❌ Closed:{% elif channel.is_active %}Uptime:{% else %}Downtime:{% endif %} {{ channel.last_update|naturaltime|slice:":-4" }} since {{ channel.last_update }}{% endif %} {%if channel.private %}🕶️{%else%}🌐{%endif%}
⛓️ Channel Point: {{ channel.funding_txid }}:{{ channel.output_index }} | Opened In: {{ channel.open_block|intcomma }} | Opener: {% if channel.initiator == True %}Local{% else %}Remote{% endif %}

{{channel.local_balance|intcomma}} {{ channel.out_percent }}%
{{channel.remote_balance|intcomma}} {{ channel.in_percent }}%

Routed Rebalanced Profitability
Period Out In Avg Out Avg In Out In Success Revenue Cost Profit Assisted Revenue APY iAPY CV
1-Day {{ channel.amt_routed_out_1day|intcomma }} {{ channel.routed_out_1day|intcomma }} {{ channel.amt_routed_in_1day|intcomma }} {{ channel.routed_in_1day|intcomma }} {{ channel.average_out_1day|intcomma }} {{ channel.average_in_1day|intcomma }} {{ channel.amt_rebal_out_1day|intcomma }} {{ channel.rebal_out_1day|intcomma }} {{ channel.amt_rebal_in_1day|intcomma }} {{ channel.rebal_in_1day|intcomma }} {{ channel.success_1day }}/{{ channel.attempts_1day }} {{ channel.success_rate_1day }}% {{ channel.revenue_1day|intcomma }} {{ channel.costs_1day|intcomma }} {{ channel.profits_1day|intcomma }} [{{ channel.profits_vol_1day }}] {{ channel.revenue_assist_1day|intcomma }} {{ channel.apy_1day }}% {{ channel.assisted_apy_1day }}% {{ channel.cv_1day }}%
7-Day {{ channel.amt_routed_out_7day|intcomma }} {{ channel.routed_out_7day|intcomma }} {{ channel.amt_routed_in_7day|intcomma }} {{ channel.routed_in_7day|intcomma }} {{ channel.average_out_7day|intcomma }} {{ channel.average_in_7day|intcomma }} {{ channel.amt_rebal_out_7day|intcomma }} {{ channel.rebal_out_7day|intcomma }} {{ channel.amt_rebal_in_7day|intcomma }} {{ channel.rebal_in_7day|intcomma }} {{ channel.success_7day }}/{{ channel.attempts_7day }} {{ channel.success_rate_7day }}% {{ channel.revenue_7day|intcomma }} {{ channel.costs_7day|intcomma }} {{ channel.profits_7day|intcomma }} [{{ channel.profits_vol_7day }}] {{ channel.revenue_assist_7day|intcomma }} {{ channel.apy_7day }}% {{ channel.assisted_apy_7day }}% {{ channel.cv_7day }}%
30-Day {{ channel.amt_routed_out_30day|intcomma }} {{ channel.routed_out_30day|intcomma }} {{ channel.amt_routed_in_30day|intcomma }} {{ channel.routed_in_30day|intcomma }} {{ channel.average_out_30day|intcomma }} {{ channel.average_in_30day|intcomma }} {{ channel.amt_rebal_out_30day|intcomma }} {{ channel.rebal_out_30day|intcomma }} {{ channel.amt_rebal_in_30day|intcomma }} {{ channel.rebal_in_30day|intcomma }} {{ channel.success_30day }}/{{ channel.attempts_30day }} {{ channel.success_rate_30day }}% {{ channel.revenue_30day|intcomma }} {{ channel.costs_30day|intcomma }} {{ channel.profits_30day|intcomma }} [{{ channel.profits_vol_30day }}] {{ channel.revenue_assist_30day|intcomma }} {{ channel.apy_30day }}% {{ channel.assisted_apy_30day }}% {{ channel.cv_30day }}%
Lifetime {{ channel.amt_routed_out|intcomma }} {{ channel.routed_out|intcomma }} {{ channel.amt_routed_in|intcomma }} {{ channel.routed_in|intcomma }} {{ channel.average_out|intcomma }} {{ channel.average_in|intcomma }} {{ channel.amt_rebal_out|intcomma }} {{ channel.rebal_out|intcomma }} {{ channel.amt_rebal_in|intcomma }} {{ channel.rebal_in|intcomma }} {{ channel.success }}/{{ channel.attempts }} {{ channel.success_rate }}% {{ channel.revenue|intcomma }} {{ channel.costs|intcomma }} {{ channel.profits|intcomma }} [{{ channel.profits_vol }}] {{ channel.revenue_assist|intcomma }} {{ channel.apy }}% {{ channel.assisted_apy }}% {{ channel.cv }}%

Channel Settings

AF Updated 7Day Flow Out Rate Rebal Rate Assisted Ratio Adjustment Suggested Rate Channel State oRate oBase iRate iBase Target Amt Max Cost % oTarget% iTarget% AR Rebal In? Active
{% csrf_token %}
{{ channel.fees_updated|naturaltime }} {% if channel.net_routed_7day > 0 %}OUT{% elif channel.net_routed_7day < 0 %}IN{% else %}---{% endif %}{% if channel.net_routed_7day != 0 %} | {{ channel.net_routed_7day }}{% endif %} {{ channel.out_rate }} {{ channel.rebal_ppm }} {{ channel.assisted_ratio }} {{ channel.adjustment }} {{ channel.new_rate|intcomma }} {% if channel.is_active == True %}
{% csrf_token %}
{% else %} --- {% endif %}
{% csrf_token %}
{% csrf_token %}
{{ channel.remote_fee_rate|intcomma }} {{ channel.remote_base_fee|intcomma }}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% if channel.inbound_can >= 1 and channel.fee_check < 100 and channel.auto_rebalance == True %}True{% else %}False{% endif %} {{ channel.steps }} True{% else %}style="background-color: rgba(248,81,73,0.15);">False{% endif %}
{% if outgoing_htlcs %}

Outgoing HTLCs

{% for htlc in outgoing_htlcs %} {% endfor %}
Forwarding Channel Forwarding Alias Amount Expiration Height Hash Lock
{% if htlc.forwarding_channel == '0' %}Self{% else %}{{ htlc.forwarding_channel }}{% endif %} {% if htlc.forwarding_alias == '' %}---{% else %}{{ htlc.forwarding_alias }}{% endif %} {{ htlc.amount|intcomma }} {{ htlc.expiration_height|intcomma }} {{ htlc.hash_lock }}
{% endif %} {% if incoming_htlcs %}

Incoming HTLCs

{% for htlc in incoming_htlcs %} {% endfor %}
Forwarding Channel Forwarding Alias Amount Expiration Height Hash Lock
{% if htlc.forwarding_channel == '0' %}Self{% else %}{{ htlc.forwarding_channel }}{% endif %} {% if htlc.forwarding_alias == '' %}---{% else %}{{ htlc.forwarding_alias }}{% endif %} {{ htlc.amount|intcomma }} {{ htlc.expiration_height|intcomma }} {{ htlc.hash_lock }}
{% endif %} {% if autofees %}

30 Days Our Fees Logs

{% for log in autofees %} {% endfor %}
Timestamp Channel ID Peer Alias Setting Old Value New Value Change
{{ log.timestamp|naturaltime }} {{ log.chan_id }} {% if log.peer_alias == '' %}{{ channel.remote_pubkey|slice:":12" }}{% else %}{{ log.peer_alias }}{% endif %} {{ log.setting }} {{ log.old_value }} log.old_value %}style="background-color: rgba(46,160,67,0.15)"{% else %}style="background-color: rgba(248,81,73,0.15);"{% endif %}>{{ log.new_value }} log.old_value %}style="background-color: rgba(46,160,67,0.15)"{% else %}style="background-color: rgba(248,81,73,0.15);"{% endif %}>{{ log.change }}%
{% endif %}

Last Payments Routed

Timestamp Channel In Id Channel In Alias Amount In Amount Out Channel Out Alias Channel Out Id Fees Earned PPM Earned
Load More
{% autoescape off %} {% with rebal_url=' Rebalances'%} {% include 'rebalances_table.html' with count=5 last_hop_pubkey=channel.remote_pubkey load_count=5 title=rebal_url %} {% endwith %} {% endautoescape %}

Last 5 Payments Sent

Timestamp Value Fee Paid PPM Paid Status Chan Out Alias Chan Out ID Hash Rebalance Keysend
Load More

Last 5 Payments Received

Created Settled Value Amount Paid State Channel In Alias Channel In Hash Keysend
Load More

Last Failed HTLCs

Timestamp Chan In ID Chan In Alias Forward Amount Actual Outbound Chan Out Alias Chan Out ID Potential Fee HTLC Failure Failure Detail
Load More

Failed Due To Insufficient Balance: 1-Day: {{ channel.failed_out_1day }} 7-Day: {{ channel.failed_out_7day }} 30-Day: {{ channel.failed_out_30day }} Lifetime: {{ channel.failed_out }}

Last Peer Log Events

Timestamp Channel ID Peer Alias Setting Old Value New Value Change Channel Liquidity
Load More

Channel Notes

{% endif %} {% if not channel %}

No data found for this channel!

{% endif %} {% endblock %}