MCPcopy Create free account
hub / github.com/ElementsProject/lightning / pay_with_sendpay

Function pay_with_sendpay

tests/test_pay.py:7035–7043  ·  view source on GitHub ↗
(invoice, route, groupid, partid)

Source from the content-addressed store, hash-verified

7033 route8 = l1.single_route(inv["payee"], "8000sat")
7034
7035 def pay_with_sendpay(invoice, route, groupid, partid):
7036 l1.rpc.sendpay(
7037 route=route,
7038 payment_hash=invoice["payment_hash"],
7039 payment_secret=invoice["payment_secret"],
7040 amount_msat=invoice["amount_msat"],
7041 groupid=groupid,
7042 partid=partid,
7043 )
7044
7045 def pay_with_sendonion(invoice, route, groupid, partid):
7046 blockheight = l1.rpc.getinfo()["blockheight"]

Callers 1

test_sendonion_sendpayFunction · 0.85

Calls 1

sendpayMethod · 0.80

Tested by

no test coverage detected