API Reference
Integrate the Loopscale protocol
cURL
curl --request POST \ --url https://tars.loopscale.com/v1/markets/creditbook/sell \ --header 'Content-Type: application/json' \ --header 'user-wallet: <user-wallet>' \ --data ' { "loan": "<string>", "oldStrategy": "<string>", "newStrategy": "<string>", "sellParams": { "ledgerIndex": 123, "expectedSalePrice": 123, "assetIndexGuidance": [ 123 ] } } '
{ "message": "<string>", "signatures": [ { "publicKey": "<string>", "signature": "<string>" } ] }
Sells a loan ledger from one strategy into another strategy, using the expected sale price guard provided in the request.
Wallet address of the lender selling the ledger.
Optional fee payer. Defaults to user-wallet when omitted.
user-wallet
Show child attributes
Serialized transaction for selling the targeted ledger.
Base64-encoded versioned transaction message