Skip to content

Commit

Permalink
Update payments API response to PR #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Oct 2, 2019
1 parent 54727a4 commit 70fa7f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
build/
.idea/
target/
project/target
9 changes: 6 additions & 3 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ eclair-cli getsentinfo --paymentHash=<some_hash>
"amount": 10000
},
"status": {
"type": "failed",
"failures": [
{
"failureType": {
Expand Down Expand Up @@ -1019,6 +1020,7 @@ eclair-cli getsentinfo --paymentHash=<some_hash>
"amount": 10000
},
"status": {
"type": "sent",
"paymentPreimage": "62d6f7517b5066c348cddc0a31ee1ed5e8929de2dbe1c7a24bcb5c7cd0a047e4",
"feesPaid": 0,
"route": [
Expand All @@ -1034,9 +1036,9 @@ eclair-cli getsentinfo --paymentHash=<some_hash>
]
```

Returns a list of attempts to send an outgoing payment, the status field contains detailed information about the payment attempt. If
the attempt was unsuccessful the `status` field contains a non empty array of detiled failures descriptions.The API can
be queried by `paymentHash` OR by `uuid`.
Returns a list of attempts to send an outgoing payment, the status field contains detailed information about the payment
attempt. If the attempt was unsuccessful the `status` field contains a non empty array of detailed failures descriptions.
The API can be queried by `paymentHash` OR by `uuid`.

### HTTP Request

Expand Down Expand Up @@ -1074,6 +1076,7 @@ eclair-cli getreceivedinfo --paymentHash=<some_hash>
"paymentPreimage": "69d56a778eca1619d19d4efc4dbe014ef64005338cb9f6cb88d47e4bac7abc30",
"createdAt": 1569338266000,
"status": {
"type": "received",
"amount": 1000,
"receivedAt": 1569338275797
}
Expand Down

0 comments on commit 70fa7f5

Please sign in to comment.