|
703 | 703 | "Main web site: <https://github.com/ElementsProject/lightning>" |
704 | 704 | ] |
705 | 705 | }, |
| 706 | + "lightning-askrene-query-reserve.json": { |
| 707 | + "$schema": "../rpc-schema-draft.json", |
| 708 | + "type": "object", |
| 709 | + "additionalProperties": false, |
| 710 | + "rpc": "askrene-query-reserve", |
| 711 | + "title": "Command to query the reserved liquidity in a channel (EXPERIMENTAL)", |
| 712 | + "description": [ |
| 713 | + "WARNING: experimental, so API may change.", |
| 714 | + "", |
| 715 | + "The **askrene-query-reserve** RPC command provides information about the number of in-flight HTLCs in a channel and the sum of their respective amounts." |
| 716 | + ], |
| 717 | + "request": { |
| 718 | + "required": [ |
| 719 | + "short_channel_id", |
| 720 | + "direction" |
| 721 | + ], |
| 722 | + "properties": { |
| 723 | + "short_channel_id": { |
| 724 | + "type": "short_channel_id", |
| 725 | + "description": [ |
| 726 | + "The short channel id of the channel." |
| 727 | + ] |
| 728 | + }, |
| 729 | + "direction": { |
| 730 | + "type": "u32", |
| 731 | + "description": [ |
| 732 | + "The direction of the channel." |
| 733 | + ] |
| 734 | + } |
| 735 | + } |
| 736 | + }, |
| 737 | + "response": { |
| 738 | + "required": [ |
| 739 | + "short_channel_id", |
| 740 | + "direction", |
| 741 | + "num_htlcs", |
| 742 | + "amount_msat" |
| 743 | + ], |
| 744 | + "properties": { |
| 745 | + "short_channel_id": { |
| 746 | + "type": "short_channel_id", |
| 747 | + "description": [ |
| 748 | + "The *short_channel_id* specified." |
| 749 | + ] |
| 750 | + }, |
| 751 | + "direction": { |
| 752 | + "type": "u32", |
| 753 | + "description": [ |
| 754 | + "The *direction* specified." |
| 755 | + ] |
| 756 | + }, |
| 757 | + "num_htlcs": { |
| 758 | + "type": "u32", |
| 759 | + "description": [ |
| 760 | + "The number of HTLCs in-flight in the channel." |
| 761 | + ] |
| 762 | + }, |
| 763 | + "amount_msat": { |
| 764 | + "type": "msat", |
| 765 | + "description": [ |
| 766 | + "The total amount reserved in the channel." |
| 767 | + ] |
| 768 | + } |
| 769 | + } |
| 770 | + }, |
| 771 | + "see_also": [ |
| 772 | + "lightning-getroutes(7)", |
| 773 | + "lightning-askrene-reserve(7)", |
| 774 | + "lightning-askrene-unreserve(7)", |
| 775 | + "lightning-askrene-inform-channel(7)", |
| 776 | + "lightning-askrene-disable-node(7)", |
| 777 | + "lightning-askrene-create-channel(7)", |
| 778 | + "lightning-askrene-listlayers(7)", |
| 779 | + "lightning-askrene-age(7)" |
| 780 | + ], |
| 781 | + "author": [ |
| 782 | + "Lagrang3 << [email protected]>> is mainly responsible." |
| 783 | + ], |
| 784 | + "resources": [ |
| 785 | + "Main web site: <https://github.com/ElementsProject/lightning>" |
| 786 | + ] |
| 787 | + }, |
706 | 788 | "lightning-askrene-reserve.json": { |
707 | 789 | "$schema": "../rpc-schema-draft.json", |
708 | 790 | "type": "object", |
|
762 | 844 | "see_also": [ |
763 | 845 | "lightning-getroutes(7)", |
764 | 846 | "lightning-askrene-unreserve(7)", |
| 847 | + "lightning-askrene-query-reserve(7)", |
765 | 848 | "lightning-askrene-disable-node(7)", |
766 | 849 | "lightning-askrene-create-channel(7)", |
767 | 850 | "lightning-askrene-inform-channel(7)", |
|
834 | 917 | "see_also": [ |
835 | 918 | "lightning-getroutes(7)", |
836 | 919 | "lightning-askrene-reserve(7)", |
| 920 | + "lightning-askrene-query-reserve(7)", |
837 | 921 | "lightning-askrene-disable-node(7)", |
838 | 922 | "lightning-askrene-create-channel(7)", |
839 | 923 | "lightning-askrene-inform-channel(7)", |
|
0 commit comments