+ {list.map(channel => {
+ const outPoint = {
+ txHash: channel.channelOutpoint.slice(0, -8),
+ index: parseInt(channel.channelOutpoint.slice(-8), 16),
+ }
+
+ const ckb = shannonToCkb(channel.capacity)
+ const amount = parseNumericAbbr(ckb)
+ return (
+
+
General
+
+
+ - Out Point
+ -
+
+
+
+ {`${outPoint.txHash.slice(0, 6)}...${outPoint.txHash.slice(-6)}#${outPoint.index}`}
+
+
+
+ {`${outPoint.txHash}#${outPoint.index}`}
+
+
+
+
+
+
+
+ - Capacity
+ -
+
+ {`${amount} CKB`}
+
+
+
+
+
+ - Chain Hash
+ -
+
+
+ {`${channel.chainHash.slice(0, 8)}...${channel.chainHash.slice(
+ -8,
+ )}`}
+
+ {channel.chainHash}
+
+
+
+
+
+
+ - Funded at
+ -
+
+ {localeNumberString(channel.fundingTxBlockNumber)}
+
+ (
{dayjs(+channel.lastUpdatedTimestamp).format(TIME_TEMPLATE)}
)
+
+
+
+
+
+
Nodes
+
+
+
First Node
+
+ - Public Key
+ -
+
+ {`${channel.node1.slice(0, 8)}...${channel.node1.slice(
+ -8,
+ )}`}
+
+
+
+
+
+ - Fee Rate
+ - {`${localeNumberString(channel.node1ToNode2FeeRate)} shannon/kB`}
+
+
+
+
Second Node
+
+ - Public Key
+ -
+
+ {`${channel.node2.slice(0, 8)}...${channel.node2.slice(
+ -8,
+ )}`}
+
+
+
+
+
+ - Fee Rate
+ - {`${localeNumberString(channel.node2ToNode1FeeRate)} shannon/kB`}
+
+
+
+
+
+ )
+ })}
+