# Get transaction to repay debt of a klend reserve Repay a debt position for the specified Kamino Lend market reserve Endpoint: POST /ktx/klend/repay Version: 1.0.0 ## Request fields (application/json): - `wallet` (string, required) User wallet address (base58) that will also sign the transaction Example: "KUMtRazMP7vwvc2kthnGZ9Cq6ZsGRiYC97snMYepNx9" - `market` (string, required) Target Kamino Lend market address Example: "7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF" - `reserve` (string, required) Target Kamino Lend Reserve address. The reserve must belong to the specified market Example: "D6q6wuQSrifJKZYpR1M8R4YawnLDtDsMmWM1NbBmgJ59" - `amount` (string, required) Amount of debt to repay (in decimal format, not lamports) Example: "0.1234" ## Response 200 fields (application/json): - `transaction` (string, required) Encoded transaction ready to send Example: "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAEB4U90z775Z0G20Lzbx64AwbcGsJTUS+D6M2d1yQDvRL+MXyh2DY6ZPXvcFUmkblzqU7UrFcH4BAOPAPQXUWHKZS66KvlDTwMypF/H+icat/xVYNA0OvZ+RMaheXL0QJajAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD9ps6fZhmN2HDYqYbzBnXEb4Pi9Sg0h5UvXVBWPj73qMlyWPTiSJ8bs9ECkUjg2DC1oTmdr/EIQEjnvY2+n4WQTZCvHbiTnsNf+U2WQNV9zDJ5S7Phu2b9OuhJqE3NuUsuvLnkdJfjUAGox8/57aeYKvmQtCaruy3qoGNzwovloCBQYAAQAHAxEBAQYRAAsIDw0HAgEQEREEBgoJDgwQ8iPGiVLh8rYA4fUFAAAAAAGC6dRmw0Z9LrKw2cy+tHvb9JXuHBu0d9Dar60DX6fr5AUFLxMJAQYVBAsCBwM=" ## Response 400 fields (application/json): - `statusCode` (number, required) HTTP error code Example: 400 - `message` (string, required) Error message describing the issue - `error` (string, required) Short description of the http status code Example: "Bad Request" - `code` (any) Kamino error code