{ "success": true, "id": "ffa84899-3c76-4e2b-a720-10c5d9bc0da0" }
// Pending request { "statusCode": 400, "message": "Pending request exists, please cancel previous request!", "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/request-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:28.854Z", "expiresAt": "2024-09-16T19:18:28.854Z" }