add_lightning_request command: return request object
This commit is contained in:
@@ -866,7 +866,7 @@ class Commands:
|
|||||||
async def add_lightning_request(self, amount, memo='', expiration=3600, wallet: Abstract_Wallet = None):
|
async def add_lightning_request(self, amount, memo='', expiration=3600, wallet: Abstract_Wallet = None):
|
||||||
amount_sat = int(satoshis(amount))
|
amount_sat = int(satoshis(amount))
|
||||||
key = await wallet.lnworker._add_request_coro(amount_sat, memo, expiration)
|
key = await wallet.lnworker._add_request_coro(amount_sat, memo, expiration)
|
||||||
return wallet.get_request(key)['invoice']
|
return wallet.get_request(key)
|
||||||
|
|
||||||
@command('w')
|
@command('w')
|
||||||
async def addtransaction(self, tx, wallet: Abstract_Wallet = None):
|
async def addtransaction(self, tx, wallet: Abstract_Wallet = None):
|
||||||
|
|||||||
Reference in New Issue
Block a user