{ "success": true }
{ "statusCode": 400, "message": "Collateral removal request not found", "error": "Bad Request" }
Last updated 2 months ago
The address of the market maker or the settler
Native blockchain name, eg: ethereum, bsc, etc
"ethereum"
The tokens to be removed as collateral
The address of the trader
Success
const response = await fetch('https://newapi.native.org/lend/v1/lend/cancel-collateral-removal', { method: 'POST', headers: { "apiKey": "text", "Content-Type": "application/json" }, body: JSON.stringify({ "recipient": "text", "chain": "ethereum", "tokens": [ { "tokenAddress": "text", "amount": "text" } ], "trader": "text" }), }); const data = await response.json();
{ "status": "text", "readyAt": "2024-09-16T19:18:51.782Z", "expiresAt": "2024-09-16T19:18:51.782Z" }