# Kraken Collection of data
### Case 1 with Bolt 11
Generate an invoice from a not connected node and try to pay it!
### Case 1.1: The node command is wrong
Receive node: `lightning-cli --testnet invoice "any" kraken_invoice this_invoice`
Source node run with an error with the command `clightning --testnet kraken_pay invoice=<>`
```
{
"listpays": {
"pay": []
},
"channels": [
{
"peer_id": "023fddaa53e214aa3d6f2e205366baf28f3bbe5f8bf056336dd53c84319c536d3c",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1940846x103x0",
"our_amount_msat": 0,
"amount_msat": 30000000,
"funding_txid": "694194f806dd1108f5e988e1c0619e28fc0e0642532410872972b1b2ae80b762",
"funding_output": 0
},
......
],
"raw_reason": "msatoshi parameter required"
}
```
### Case 1.2: Try to pay a bolt11 with a not connected node!
Receive node: `lightning-cli --testnet invoice "any" kraken_invoice this_invoice`
Source node return the following error:
```
```
### Case 1.3: Not enough nodes (or no node at all)!
Receive Node: `lightning-cli --testnet pay lntb100n1p30rywjsp54utkcvmp422nu6qr7sxhjcwptey07749zcskyx4mh2mlxtf3ngsspp5j3kr9qs9hvny6rdmw3puw3w87zllfj8hn2t7h3gy7jqnt8s3gptsdpy235xju6ld9e47c2lw3jhxazld9h8vmmfvdjsxqyjw5qcqp2rzjq287tx7hh03esf5e2d08usanqhrfpx0mmkvs9vd0tp66zg0ahx3acg65ucqqqxsqqqqqqqqpqqqqqzsqqc9qyysgqp5xz9l7e3exdyrxfe0e4nvhpgtmuu5fqpqcmdt3pst89u6mpzjfhem46zju3j8nskfme9hm7qdztcnn9uuhm49marg066axfupk93wsqkva9qh`
Source node with core lightning:
```
{
"code": 210,
"message": "Ran out of routes to try after 1 attempt: see `paystatus`",
"attempts": [
{
"status": "failed",
"failreason": "Cannot attempt payment, we have no channel to which we can add an HTLC",
"partid": 1,
"amount_msat": 10000
}
]
}
```
Source node with kraken:
```
tcln kraken_pay invoice=lntb100n1p30rywjsp54utkcvmp422nu6qr7sxhjcwptey07749zcskyx4mh2mlxtf3ngsspp5j3kr9qs9hvny6rdmw3puw3w87zllfj8hn2t7h3gy7jqnt8s3gptsdpy235xju6ld9e47c2lw3jhxazld9h8vmmfvdjsxqyjw5qcqp2rzjq287tx7hh03esf5e2d08usanqhrfpx0mmkvs9vd0tp66zg0ahx3acg65ucqqqxsqqqqqqqqpqqqqqzsqqc9qyysgqp5xz9l7e3exdyrxfe0e4nvhpgtmuu5fqpqcmdt3pst89u6mpzjfhem46zju3j8nskfme9hm7qdztcnn9uuhm49marg066axfupk93wsqkva9qh
{
"listpays": {
"pay": [
{
"bolt11": "lntb100n1p30rywjsp54utkcvmp422nu6qr7sxhjcwptey07749zcskyx4mh2mlxtf3ngsspp5j3kr9qs9hvny6rdmw3puw3w87zllfj8hn2t7h3gy7jqnt8s3gptsdpy235xju6ld9e47c2lw3jhxazld9h8vmmfvdjsxqyjw5qcqp2rzjq287tx7hh03esf5e2d08usanqhrfpx0mmkvs9vd0tp66zg0ahx3acg65ucqqqxsqqqqqqqqpqqqqqzsqqc9qyysgqp5xz9l7e3exdyrxfe0e4nvhpgtmuu5fqpqcmdt3pst89u6mpzjfhem46zju3j8nskfme9hm7qdztcnn9uuhm49marg066axfupk93wsqkva9qh",
"amount_msat": 10000,
"destination": "0204eedfb7857758c48b73998256650baca9d420a96832a7a921e2755c61cb2698",
"attempts": [
{
"strategy": "Initial attempt",
"start_time": "2022-08-14T11:54:17.058Z",
"age_in_seconds": 316,
"end_time": "2022-08-14T11:54:17.061Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
}
]
},
{
"bolt11": "lntb100n1p30rywjsp54utkcvmp422nu6qr7sxhjcwptey07749zcskyx4mh2mlxtf3ngsspp5j3kr9qs9hvny6rdmw3puw3w87zllfj8hn2t7h3gy7jqnt8s3gptsdpy235xju6ld9e47c2lw3jhxazld9h8vmmfvdjsxqyjw5qcqp2rzjq287tx7hh03esf5e2d08usanqhrfpx0mmkvs9vd0tp66zg0ahx3acg65ucqqqxsqqqqqqqqpqqqqqzsqqc9qyysgqp5xz9l7e3exdyrxfe0e4nvhpgtmuu5fqpqcmdt3pst89u6mpzjfhem46zju3j8nskfme9hm7qdztcnn9uuhm49marg066axfupk93wsqkva9qh",
"amount_msat": 10000,
"destination": "0204eedfb7857758c48b73998256650baca9d420a96832a7a921e2755c61cb2698",
"attempts": [
{
"strategy": "Initial attempt",
"start_time": "2022-08-14T11:59:33.764Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T11:59:33.766Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
}
]
}
]
},
"channels": [],
"raw_reason": "Ran out of routes to try after 1 attempt: see `paystatus`"
}
```
### Case 1.4: We have a channels but we do not know the capacity!
Received node: `sudo docker compose run -T cln_test lightning-cli --testnet invoice 100 'kraken2' 'kranenpay'`
Source node return the following command with kraken
```
➜ kraken git:(macros/ci_release) clightning --testnet kraken_pay invoice=lntb1n1p3037x8sp5vs6y9uk3wjkznx5sqhd6cuund8a4vpmgvmk4td0n36237xp7e0fspp5jxndkrmzg59px57mc3ze40aexn7p98esuphqwuljwdlwzlwlr03qdq0ddexzmn9decxz7gxqyjw5qcqp2rzjq28vwprzypa40c75myejm8s2aenkeykcnd7flvy9plp2yjq56nvrcg6kesqqqssqqyqqqqlgqqqqqqgq9q9qyysgq0rmhggj6zf6ptfq5t4t6zm95uv4hxwxmvtegfjfnyu226pn9ju5rnx0mf5hfay6jrux4vjf0n37akde9wdhw6pul3h8e5uwp293dtdcqh6tc9p
{
"listpays": {
"pay": [
{
"bolt11": "lntb1n1p3037x8sp5vs6y9uk3wjkznx5sqhd6cuund8a4vpmgvmk4td0n36237xp7e0fspp5jxndkrmzg59px57mc3ze40aexn7p98esuphqwuljwdlwzlwlr03qdq0ddexzmn9decxz7gxqyjw5qcqp2rzjq28vwprzypa40c75myejm8s2aenkeykcnd7flvy9plp2yjq56nvrcg6kesqqqssqqyqqqqlgqqqqqqgq9q9qyysgq0rmhggj6zf6ptfq5t4t6zm95uv4hxwxmvtegfjfnyu226pn9ju5rnx0mf5hfay6jrux4vjf0n37akde9wdhw6pul3h8e5uwp293dtdcqh6tc9p",
"amount_msat": 100,
"destination": "028fe59bd7bbe3982699535e7e43b305c69099fbdd9902b1af5875a121fdb9a3dc",
"attempts": [
{
"strategy": "Initial attempt",
"start_time": "2022-08-14T13:30:09.035Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.173Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 9 attempts left",
"start_time": "2022-08-14T13:30:09.173Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.187Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 8 attempts left",
"start_time": "2022-08-14T13:30:09.187Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.208Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 7 attempts left",
"start_time": "2022-08-14T13:30:09.208Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.224Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 6 attempts left",
"start_time": "2022-08-14T13:30:09.224Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.250Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 5 attempts left",
"start_time": "2022-08-14T13:30:09.250Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.272Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 4 attempts left",
"start_time": "2022-08-14T13:30:09.272Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.298Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 3 attempts left",
"start_time": "2022-08-14T13:30:09.298Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.316Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 2 attempts left",
"start_time": "2022-08-14T13:30:09.316Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.333Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 1 attempts left",
"start_time": "2022-08-14T13:30:09.333Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.355Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
},
{
"strategy": "Still have 0 attempts left",
"start_time": "2022-08-14T13:30:09.355Z",
"age_in_seconds": 0,
"end_time": "2022-08-14T13:30:09.385Z",
"state": "completed",
"failure": {
"code": 205,
"message": "Call to getroute: Could not find a route"
}
}
]
}
]
},
"channels": [
{
"peer_id": "023fddaa53e214aa3d6f2e205366baf28f3bbe5f8bf056336dd53c84319c536d3c",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1940846x103x0",
"our_amount_msat": 0,
"amount_msat": 30000000,
"funding_txid": "694194f806dd1108f5e988e1c0619e28fc0e0642532410872972b1b2ae80b762",
"funding_output": 0
},
{
"peer_id": "03241310d658378e07a8ba0b56818e63d9e296d5b8eff77f0f2fca7dc93836969e",
"connected": false,
"state": "CHANNELD_AWAITING_LOCKIN",
"short_channel_id": "1940875x34x1",
"our_amount_msat": 0,
"amount_msat": 50000000,
"funding_txid": "0aef4ad067f693900aca819ff2298168d99407c1971e1b611f44e8ffcaef9441",
"funding_output": 1
},
{
"peer_id": "03b1330add0c75e0b2e1401dc61028a3d2351b9fef439d703f7ff71f3a182f9192",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1941019x26x1",
"our_amount_msat": 0,
"amount_msat": 61000000,
"funding_txid": "47ccd0c4e32b012748b3f9cc509d0e6a978f63ab0a86bbf05c6f9bdc78e6ca67",
"funding_output": 1
},
{
"peer_id": "027a1cd64065dc39275b011ae7d89e04ff523bb21b84a50a1b160e84e3a715a838",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1941252x47x0",
"our_amount_msat": 30000000,
"amount_msat": 40000000,
"funding_txid": "c2e1fa8bc6bf69df35459f30908084b42d7d3399c2a66822b01b4ffdc30028bb",
"funding_output": 0
},
{
"peer_id": "0303ba0fed62039df562a77bfcec887a9aa0767ff6519f6e2baa1309210544cd3d",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1941361x108x0",
"our_amount_msat": 15000000,
"amount_msat": 20000000,
"funding_txid": "533723adb8f79351123a7a9b76979fc7e72b1f121769219354247b545a3ea998",
"funding_output": 0
},
{
"peer_id": "03e3f39c5a8ee36d718980105d8411dffc9acd2313f20acf258e5a9f92b4048519",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1969040x40x0",
"our_amount_msat": 13000000,
"amount_msat": 13000000,
"funding_txid": "cb66fbc175bcc4ce1a04cb6a8debc05f239d0d6b62b19115aa62a194e1b96e75",
"funding_output": 0
},
{
"peer_id": "0277622bf4c497475960bf91bd3c673a4cb4e9b589cebfde9700c197b3989cc1b8",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "1972450x31x1",
"our_amount_msat": 30000000,
"amount_msat": 40000000,
"funding_txid": "4c6dd292c01a148234f066a148422a5e6dfd8ea903af126991dd59f5d80dcf2d",
"funding_output": 1
},
{
"peer_id": "02ad573e0318e45e3de419f789f076f71bcce230df13cde0a4c9adcdf3a1d9cd8f",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2066113x63x1",
"our_amount_msat": 10000000,
"amount_msat": 40000000,
"funding_txid": "1a1eaca46366fb5d53d01af7adaa21fbc951d44a8eea327ae3c786355a7c729e",
"funding_output": 1
},
{
"peer_id": "030f0bf260acdbd3edcad84d7588ec7c5df4711e87e6a23016f989b8d3a4147230",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2092601x114x1",
"our_amount_msat": 900000000,
"amount_msat": 900000000,
"funding_txid": "3f6e1d9e76d02f1c51fd0bfeb3984bb4e72837df57630b0a427e33d9b76da80a",
"funding_output": 1
},
{
"peer_id": "029081a5673d5fc5844031159369fb66be31279e717acb35fef345b2d4cce15a97",
"connected": false,
"state": "CHANNELD_SHUTTING_DOWN",
"short_channel_id": "2098884x27x1",
"our_amount_msat": 400000000,
"amount_msat": 400000000,
"funding_txid": "b3ba6e62393d9f0d46ebfbd4d658d98aae3d26899a368de6eb5f5f72921d0159",
"funding_output": 1
},
{
"peer_id": "0375ad93ff4b420a2cedbb4e81ac9b448bfee3ca44711573ecad87996670d9f745",
"connected": false,
"state": "CHANNELD_SHUTTING_DOWN",
"short_channel_id": "2098922x50x0",
"our_amount_msat": 0,
"amount_msat": 180809000,
"funding_txid": "f8b47eb7a1fb6a5202d25f871a6a404a98ab6be5325082a5790f17d2bc52678f",
"funding_output": 0
},
{
"peer_id": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2221795x27x0",
"our_amount_msat": 450000000,
"amount_msat": 16777061000,
"funding_txid": "19e9667c9098070b3bde419fa9d2776aec412cf4eee0b6ddde2b2c6bd7ed3bd8",
"funding_output": 0
},
{
"peer_id": "03f9167917f344a8007d7cf0e557fb61c2de324811f909ca5a3fb2d96b9293d54a",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2221810x16x0",
"our_amount_msat": 40000000,
"amount_msat": 40000000,
"funding_txid": "6d09993edbf7af8b32e6da959670bcf2e47439bbda6a245a8d228614076eb06a",
"funding_output": 0
},
{
"peer_id": "0224b974a009321a09bf1fe3c8e503497426a5e850f07b6d78128d1086d1f517fe",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2221810x17x0",
"our_amount_msat": 40000000,
"amount_msat": 40000000,
"funding_txid": "00245be2ba69d01de36466b567e2d77979346fe09083721361a3f507a63b9080",
"funding_output": 0
},
{
"peer_id": "03be3b0e9992153b1d5a6e1623670b6c3663f72ce6cf2e0dd39c0a373a7de5a3b7",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2222217x22x0",
"our_amount_msat": 540000000,
"amount_msat": 540000000,
"funding_txid": "05ee94e2af41002d30d30328a2cbba15ecef6bd316d42ff02373d24fb8a32e51",
"funding_output": 0
},
{
"peer_id": "02312627fdf07fbdd7e5ddb136611bdde9b00d26821d14d94891395452f67af248",
"connected": true,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2281626x1x0",
"our_amount_msat": 36997000,
"amount_msat": 40000000,
"funding_txid": "d22c11ea2456f0a45e684f9f0abf72a37c0cffb07e3100a840bc9c16730b5e42",
"funding_output": 0
},
{
"peer_id": "02ec99e98f3f3a5e300bebb12a49d5b72d77a55796808a8f5b2e6b42f3db51c7cf",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2282214x83x1",
"our_amount_msat": 39999000,
"amount_msat": 40000000,
"funding_txid": "7226e6de7aca58f95ccd241dd5db4dd4bf1be91bb11822c5df36be8939dc1000",
"funding_output": 1
},
{
"peer_id": "028fe59bd7bbe3982699535e7e43b305c69099fbdd9902b1af5875a121fdb9a3dc",
"connected": true,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2283770x27x1",
"our_amount_msat": 40000000,
"amount_msat": 40000000,
"funding_txid": "5ec28b756ada5b1c28b9376e3c499308a15e6eb52bc09e958d744c34a1d0a18b",
"funding_output": 1
},
{
"peer_id": "028fe59bd7bbe3982699535e7e43b305c69099fbdd9902b1af5875a121fdb9a3dc",
"connected": true,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2284196x13x0",
"our_amount_msat": 0,
"amount_msat": 15000000,
"funding_txid": "3f0fd00c40491cee32fe5c674b950efe42e79d4dc51f50fcd534999dc441d004",
"funding_output": 0
},
{
"peer_id": "030425d8babe3ab6dfc065e69dd8b10ce6738c86ea7d634324c913e21620fa5eaf",
"connected": false,
"state": "CHANNELD_NORMAL",
"short_channel_id": "2283778x9x0",
"our_amount_msat": 0,
"amount_msat": 16777215000,
"funding_txid": "ddf1637a0466490ca48303e075cc8b6d4f11a047bb176dccc3ed4a823246959d",
"funding_output": 0
}
],
"raw_reason": "Ran out of routes to try after 11 attempts: see `paystatus`",
"raw_error_code": 210,
"raw_data": "unknown"
}
```