Resolve multiple short-channel aliases to one LND channel
A routing log can refer to an alias while a channel report uses the base short channel ID. LND publishes local alias mappings that let a support tool join the records.
Find the matching mapping
Set SCID to the decimal ID seen in the log. Keep IDs as strings because the protocol uses unsigned 64-bit numbers and some JSON runtimes lose precision when converting them to floating point.
lncli listaliases | jq --arg id "$SCID" '.alias_maps[] | select(.base_scid == $id or (.aliases | index($id) != null))'
Interpret the base ID
For a non-zero-conf channel, the base is the confirmed short channel ID. For a zero-conf channel it can be the first assigned base alias. Finding a mapping therefore resolves a local name, but cannot by itself identify a confirmed funding position onchain. Preserve the original alias for tracing.