Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Sep 23, 2022
1 parent b85e179 commit c81266f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ bos chart-payments-received
# See details on how closed channels resolved on-chain
bos closed

# View outbound fee rates and update outbound fee rates to peers
bos fees

# Query the node to find something like a payment, channel or node
bos find "query"

Expand Down Expand Up @@ -1108,6 +1111,49 @@ try {

<br></br>

### Fees

```javascript
/**
@PostRequest
@Url
http://localhost:8055/api/fees
@Body
{
[cltv_delta]: <Set CLTV Delta Number>
[fee_rate]: <Fee Rate String>
to: [<Adjust Routing Fee To Peer Alias or Public Key or Tag String>]
}
@Response
{
rows: [[<Table Cell String>]]
}
*/

try {
const url = 'http://localhost:8055/api/open';

const postBody = {
fee_rate: ['100'],
to: ['bob', 'carol']
};


const config = {
headers: { Authorization: `Bearer ${accessToken}` },
};

const response = await axios.post(url, postBody, config);
} catch (error) {
console.error(error);
}
```
<br></br>


### Find

```javascript
Expand Down

0 comments on commit c81266f

Please sign in to comment.