Chainlink external adapter for rETH-related feeds.
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | ETHEREUM_RPC_URL | RPC URL to Ethereum mainnet. Used for rETH staking contract. | string |
There are no rate limits for this adapter.
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | reth | reth |
This endpoint returns the exchange rate of rETH/ETH according to the staking contract on Ethereum mainnet (L1), optionally as a price feed.
reth
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
quote | Quote currency to pull price for | string | USD |
|||||
network | Network to query for price feed (EA must have <network>_RPC_URL configured). |
string | ethereum |
|||||
ethUsdProxyAddress | Address for the ETH/USD price feed on the given network | string | 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419 |
|||||
rethStorageAddress | Address for the Rocket Storage contract on the Ethereum network | string | 0xae78736Cd615f374D3085123A210448E74Fc6393 |
Request:
{
"id": "1",
"data": {
"network": "ethereum",
"ethUsdProxyAddress": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
"rethStorageAddress": "0xae78736Cd615f374D3085123A210448E74Fc6393",
"endpoint": "reth"
},
"debug": {
"cacheKey": "BHMQGmb9CwYk+V1vAwBAgRvLkUk="
}
}
Response:
{
"jobRunID": "1",
"data": {
"result": "0x0000000000000000000000000000000000000000000000000e6ed27d66680000"
},
"result": "0x0000000000000000000000000000000000000000000000000e6ed27d66680000",
"statusCode": 200,
"providerStatusCode": 200
}
Additional Examples
Request:
{
"id": "1",
"data": {
"quote": "USD",
"network": "ethereum",
"ethUsdProxyAddress": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
"rethStorageAddress": "0xae78736Cd615f374D3085123A210448E74Fc6393",
"endpoint": "reth"
},
"debug": {
"cacheKey": "b7v2HP3HRizQ3DuphGCYbgPCWQw="
}
}
Response:
{
"jobRunID": "1",
"data": {
"result": 1341.6
},
"result": 1341.6,
"statusCode": 200,
"providerStatusCode": 200
}
MIT License