Skip to Content
API ReferenceMarketplaceRocket Pool Contracts API

Rocket Pool Contracts API logo Rocket Pool Contracts API

API for Rocket Pool Contracts. Every ABI item below is callable as its own Spectrum JSON-RPC method. See the Marketplace overview for how the method names are built.

Staking

Deployments

DeploymentChainAddressMethods
rETH
reth
Ethereum0xae7873…fc639313

Methods

Functions

ReadgetExchangeRatespectrum_rocketpool_ethereum_reth_call_getExchangeRate

Fetches the exchange rate

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_getExchangeRate",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetTotalCollateralspectrum_rocketpool_ethereum_reth_call_getTotalCollateral

Fetches the total collateral

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_getTotalCollateral",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetCollateralRatespectrum_rocketpool_ethereum_reth_call_getCollateralRate

Fetches the collateral rate

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_getCollateralRate",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readnamespectrum_rocketpool_ethereum_reth_call_name

Fetches the name of the token

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_name",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0string
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readsymbolspectrum_rocketpool_ethereum_reth_call_symbol

Fetches the symbol of the token

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_symbol",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0string
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readdecimalsspectrum_rocketpool_ethereum_reth_call_decimals

Fetches the decimals of the token

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_decimals",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0uint8
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadtotalSupplyspectrum_rocketpool_ethereum_reth_call_totalSupply

Fetches the totalSupply of the token

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_totalSupply",
  "params": {
    "args": []
  },
  "id": 1
}
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadbalanceOfspectrum_rocketpool_ethereum_reth_call_balanceOf

Fetches the balance of an address

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_balanceOf",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001"
    ]
  },
  "id": 1
}
Inputs
NameType
accountaddress
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readallowancespectrum_rocketpool_ethereum_reth_call_allowance

Fetches the allowance of an address for a spender

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_allowance",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001"
    ]
  },
  "id": 1
}
Inputs
NameType
owneraddress
spenderaddress
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetEthValuespectrum_rocketpool_ethereum_reth_call_getEthValue

Fetches the ETH value from rETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_getEthValue",
  "params": {
    "args": [
      "0"
    ]
  },
  "id": 1
}
Inputs
NameType
_rethAmountuint256
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRethValuespectrum_rocketpool_ethereum_reth_call_getRethValue

Fetches the rETH value from ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_call_getRethValue",
  "params": {
    "args": [
      "0"
    ]
  },
  "id": 1
}
Inputs
NameType
_ethAmountuint256
Outputs
NameType
output_0uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.

Events

EventTransferspectrum_rocketpool_ethereum_reth_getLogs_Transfer

The event emitted when a transfer is made

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_getLogs_Transfer",
  "params": {
    "args": [
      null,
      null,
      null
    ],
    "fromBlock": "latest",
    "toBlock": "latest"
  },
  "id": 1
}
Event arguments
NameTypeIndexed
fromaddressyes
toaddressyes
valueuint256no
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
EventApprovalspectrum_rocketpool_ethereum_reth_getLogs_Approval

The event emitted when an approval is made

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_rocketpool_ethereum_reth_getLogs_Approval",
  "params": {
    "args": [
      null,
      null,
      null
    ],
    "fromBlock": "latest",
    "toBlock": "latest"
  },
  "id": 1
}
Event arguments
NameTypeIndexed
owneraddressyes
spenderaddressyes
valueuint256no
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.