/v1/convert
Convert an amount between ETH, stETH and wstETH
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/lido-api/v1/convert" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lido-api/v1/convert", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lido-api/v1/convert");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/lido-api/v1/convert",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"to": "steth",
"from": "wsteth",
"note": "Converts an amount between ETH, stETH and wstETH at the current on-chain rate. ETH and stETH are treated 1:1 (stETH is a 1:1 rebasing claim on staked ETH; the market price of stETH can differ slightly from ETH). wstETH is converted via the live wstETH→stETH exchange rate. Live, cached ~90s.",
"amount": 100,
"result": 123.68598494,
"source": "Ethereum wstETH contract via public RPC (ethereum-rpc.publicnode.com), keyless",
"steth_per_wsteth": 1.23686
},
"meta": {
"timestamp": "2026-06-13T04:42:41.000Z",
"request_id": "6a9c8101-1ef2-453f-b2d3-cd680bc5f2e1"
},
"status": "ok",
"message": "Conversion retrieved successfully",
"success": true
}