Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ functions
Functions
16,249 in github.com/ElementsProject/lightning
⨍
Functions
16,249
◇
Types & classes
10,838
↳
Endpoints
71
↓ 2,750 callers
Function
abort
If we really abort, we don't get coverage info! */
ccan/ccan/time/test/run-check.c:12
↓ 1,141 callers
Function
tal_free
ccan/ccan/tal/tal.c:520
↓ 392 callers
Method
line_graph
Create nodes, connect them and optionally fund channels.
contrib/pyln-testing/pyln/testing/utils.py:1900
↓ 389 callers
Method
get_node
Resolves a node by its public key node_id
contrib/pyln-client/pyln/client/gossmap.py:506
↓ 379 callers
Function
wait_for
(success, timeout=TIMEOUT)
contrib/pyln-testing/pyln/testing/utils.py:89
↓ 375 callers
Function
remove_default
(d)
contrib/pyln-testing/pyln/testing/grpc2py.py:20
↓ 371 callers
Method
wait_for_log
Look for `regex` in the logs. Convenience wrapper for the common case of only seeking a single entry.
contrib/pyln-testing/pyln/testing/utils.py:404
↓ 365 callers
Function
tal_bytelen
ccan/ccan/tal/tal.c:690
↓ 342 callers
Method
join
Wait for plugin shutdown
plugins/src/lib.rs:1085
↓ 337 callers
Method
generate_block
(self, numblocks=1, wait_for_mempool=0, to_addr=None, needfeerate=None)
contrib/pyln-testing/pyln/testing/utils.py:535
↓ 313 callers
Function
only_one
Many JSON RPC calls return an array; often we only expect a single entry
contrib/pyln-testing/pyln/testing/utils.py:128
↓ 312 callers
Method
invoice
( self, amount_msat: Optional[int] = None, label: str = None,
contrib/pyln-testing/pyln/testing/grpc.py:210
↓ 303 callers
Method
connect
Connect to {peer_id} at {host} and {port}.
contrib/pyln-testing/pyln/testing/grpc.py:96
↓ 302 callers
Function
tal_hex
common/utils.c:83
↓ 284 callers
Method
call
(&mut self, req: Request)
cln-rpc/src/lib.rs:274
↓ 278 callers
Function
json_add_string
common/json_stream.c:207
↓ 236 callers
Method
listpeerchannels
Show current peers channels, and if the {peer_id} is specified all the channels for the peer are returned, and if {short_channel_id}
contrib/pyln-client/pyln/client/lightning.py:1073
↓ 233 callers
Method
get_nodes
Start a number of nodes in parallel, each with its own options
contrib/pyln-testing/pyln/testing/utils.py:1756
↓ 220 callers
Function
json_get_member
Get top-level member. */
common/json_parse_simple.h:76
↓ 215 callers
Method
fundchannel
( self, node_id: str, amount: int, # TODO map the following arguments
contrib/pyln-testing/pyln/testing/grpc.py:142
↓ 204 callers
Method
to_string
(&self)
cln-rpc/src/hooks.rs:68
↓ 187 callers
Function
json_tok_full
Generated stub for json_tok_full */
common/test/run-bolt11.c:129
↓ 186 callers
Function
json_tok_full_len
Generated stub for json_tok_full_len */
common/test/run-bolt11.c:132
↓ 167 callers
Method
start
(self, port)
tests/fixtures.py:129
↓ 165 callers
Function
json_object_end
common/json_stream.c:156
↓ 162 callers
Method
is_in_log
Look for `regex` in the logs.
contrib/pyln-testing/pyln/testing/utils.py:337
↓ 155 callers
Function
json_object_start
common/json_stream.c:150
↓ 154 callers
Method
into_inner
Returns the inner data object contained by params for handling or future processing.
plugins/lsps-plugin/src/proto/jsonrpc.rs:92
↓ 152 callers
Function
hexlify
(b)
contrib/pyln-testing/pyln/testing/grpc2py.py:8
↓ 149 callers
Method
decode
(cls, b)
contrib/pyln-proto/pyln/proto/invoice.py:286
↓ 148 callers
Function
common_setup
common/setup.c:38
↓ 148 callers
Method
stop
(self)
tests/fixtures.py:147
↓ 146 callers
Method
close
( self, peer_id: str, unilateraltimeout: Optional[int] = None,
contrib/pyln-testing/pyln/testing/grpc.py:247
↓ 140 callers
Function
json_array_end
common/json_stream.c:144
↓ 139 callers
Function
json_array_start
common/json_stream.c:138
↓ 131 callers
Function
common_shutdown
common/setup.c:66
↓ 131 callers
Function
sync_blockheight
(bitcoind, nodes)
contrib/pyln-testing/pyln/testing/utils.py:135
↓ 130 callers
Function
param
common/json_param.c:369
↓ 129 callers
Method
xpay
Send payment specified by {invstring}.
contrib/pyln-client/pyln/client/lightning.py:1189
↓ 127 callers
Function
fmt_amount_msat
common/amount.c:63
↓ 126 callers
Function
command_fail
lightningd/jsonrpc.c:569
↓ 126 callers
Method
unwrap
(self)
plugins/lsps-plugin/src/proto/jsonrpc.rs:157
↓ 120 callers
Method
listfunds
(self, spent=None)
contrib/pyln-testing/pyln/testing/grpc.py:138
↓ 116 callers
Method
fundwallet
(self, sats, addrtype="bech32", mine_block=True)
contrib/pyln-testing/pyln/testing/utils.py:1099
↓ 115 callers
Function
fromwire_peektype
wire/fromwire.c:54
↓ 115 callers
Method
newaddr
Get a new address of type {addresstype} of the internal wallet.
contrib/pyln-testing/pyln/testing/grpc.py:117
↓ 114 callers
Function
db_exec_prepared_v2
db/utils.c:176
↓ 113 callers
Function
db_query_prepared
db/utils.c:154
↓ 112 callers
Function
db_step
db/utils.c:160
↓ 112 callers
Function
fatal
lightningd/log.c:1133
↓ 111 callers
Function
command_fail_badparam
common/json_command.c:4
↓ 110 callers
Function
db_bind_u64
db/bindings.c:72
↓ 108 callers
Method
pay
( self, bolt11: str, amount_msat: Optional[int] = None, label: Optional[str] =
contrib/pyln-testing/pyln/testing/grpc.py:176
↓ 108 callers
Function
plugin_log
plugins/libplugin.c:2000
↓ 107 callers
Function
command_success
lightningd/jsonrpc.c:537
↓ 106 callers
Function
json_stream_success
lightningd/jsonrpc.c:727
↓ 104 callers
Function
command_param_failed
lightningd/jsonrpc.c:47
↓ 101 callers
Method
call
Generic call API: you can set cmdprefix here, or set self.cmdprefix before the call is made.
contrib/pyln-client/pyln/client/lightning.py:356
↓ 101 callers
Function
fmt_amount_sat
common/amount.c:99
↓ 100 callers
Function
errx
ccan/ccan/err/err.c:31
↓ 100 callers
Method
get
Get a reference to the value of a TLV record by type.
plugins/lsps-plugin/src/core/tlv.rs:127
↓ 99 callers
Function
fmt_node_id
Convert to hex string of SEC1 encoding */
common/node_id.c:37
↓ 99 callers
Method
restart
Stop and restart the lightning node. Keyword arguments: timeout: number of seconds to wait for a shutdown clean: whether to i
contrib/pyln-testing/pyln/testing/utils.py:1205
↓ 93 callers
Method
run
(self)
tests/plugins/fail_by_itself.py:15
↓ 91 callers
Method
listchannels
(self, short_channel_id=None, source=None, destination=None)
contrib/pyln-testing/pyln/testing/grpc.py:168
↓ 90 callers
Function
db_bind_int
db/bindings.c:43
↓ 89 callers
Function
json_add_u64
common/json_stream.c:286
↓ 89 callers
Method
listpeers
(self, peerid=None, level=None)
contrib/pyln-testing/pyln/testing/grpc.py:103
↓ 89 callers
Function
plugin_log
Generated stub for plugin_log */
plugins/test/run-route-calc.c:103
↓ 89 callers
Function
send_outreq
plugins/libplugin.c:1108
↓ 88 callers
Function
subd_send_msg
lightningd/subd.c:845
↓ 87 callers
Function
json_strdup
Generated stub for json_strdup */
common/test/run-bolt11.c:67
↓ 86 callers
Method
sendpay
Send along {route} in return for preimage of {payment_hash}.
contrib/pyln-client/pyln/client/lightning.py:1400
↓ 82 callers
Function
json_add_bool
common/json_stream.c:310
↓ 82 callers
Function
param_check
common/json_param.c:390
↓ 81 callers
Function
json_add_amount_msat
common/json_stream.c:620
↓ 81 callers
Function
json_scan
common/json_parse.c:492
↓ 81 callers
Function
tal_hexstr
common/utils.c:76
↓ 80 callers
Function
channel_internal_error
lightningd/channel.c:1219
↓ 79 callers
Function
json_add_u32
common/json_stream.c:298
↓ 78 callers
Function
plugin_err
plugins/libplugin.c:1991
↓ 74 callers
Function
amount2msat
(a)
contrib/pyln-testing/pyln/testing/grpc2py.py:12
↓ 74 callers
Function
json_add_node_id
common/json_stream.c:420
↓ 73 callers
Function
fmt_bitcoin_txid
bitcoin/tx.c:720
↓ 73 callers
Function
hex_decode
ccan/ccan/str/hex/hex.c:24
↓ 72 callers
Method
log
(self, message: str, level: str = 'info')
contrib/pyln-client/pyln/client/plugin.py:791
↓ 71 callers
Function
time_from_sec
* time_from_sec - convert seconds to a relative time * @msec: time in seconds * * Example: * // 1 minute timeout * #define TIMEOUT time_from_sec(
ccan/ccan/time/time.h:670
↓ 70 callers
Function
tal_append_fmt
ccan/ccan/tal/str/str.c:92
↓ 68 callers
Method
join_nodes
Given nodes, connect them in a line, optionally funding a channel, wait_for_announce waits for channel and node announcements
contrib/pyln-testing/pyln/testing/utils.py:1843
↓ 68 callers
Function
json_add_hex_talarr
common/json_stream.c:328
↓ 66 callers
Function
clock_time
common/clock_time.c:13
↓ 66 callers
Function
err
ccan/ccan/err/err.c:18
↓ 66 callers
Function
json_add_num
common/json_stream.c:281
↓ 66 callers
Method
read
Read and decode a Message within that namespace. Returns None on EOF
contrib/pyln-proto/pyln/proto/message/message.py:631
↓ 66 callers
Method
wait_for_logs
Look for `regexs` in the logs. The logs contain tailed stdout of the process. We look for each regex in `regexs`, starting from `logs
contrib/pyln-testing/pyln/testing/utils.py:364
↓ 65 callers
Function
fmt_pubkey
bitcoin/pubkey.c:65
↓ 65 callers
Method
listinvoices
( self, label=None, payment_hash=None, invstring=None,
contrib/pyln-testing/pyln/testing/grpc.py:268
↓ 64 callers
Function
json_tok_streq
Is this a string equal to str? */
common/json_parse_simple.h:23
↓ 63 callers
Function
db_col_u64
db/bindings.c:281
↓ 63 callers
Function
status_failed
FIXME: rename to status_fatal, s/fail/fatal/ in status_failreason enums */
common/status.c:196
next →
1–100 of 16,249, ranked by callers