{ "status": "success", "id": "b9292014-1e85-43e8-a635-8a4f1c5423b9" }
{ "statusCode": 400, "message": "Settlement request not found", "error": "Bad Request" }
Last updated 2 months ago
Native blockchain name, eg: ethereum, bsc, etc
"ethereum"
The address of the market maker or the settler
The position updates for the settlement
The address of the trader
Success
const response = await fetch('https://newapi.native.org/lend/v1/lend/cancel-settlement', { method: 'POST', headers: { "apiKey": "text", "Content-Type": "application/json" }, body: JSON.stringify({ "chain": "ethereum", "recipient": "text", "positionUpdates": [ { "tokenAddress": "text", "amount": "text" } ], "trader": "text" }), }); const data = await response.json();
{ "success": "text" }