Skip to Content
API ReferenceMarketplace1Inch Contracts API

1Inch Contracts API logo 1Inch Contracts API

API for 1Inch 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.

DEX

Deployments

DeploymentChainAddressMethods
Offchain Oracle · Arbitrum
offchainoracle
Arbitrum0x000000…7f67863
Offchain Oracle · Avalanche
offchainoracle
Avalanche C Chain0x000000…7f67863
Offchain Oracle · Base
offchainoracle
Base0x000000…7f67863
Offchain Oracle · BNB Chain
offchainoracle
Binance Smart Chain0x000000…7f67863
Offchain Oracle · Ethereum
offchainoracle
Ethereum0x000000…7f67863
Offchain Oracle · Polygon
offchainoracle
Polygon0x000000…7f67863

Methods

Offchain Oracle · Arbitrum

Functions

ReadgetRatespectrum_1inchcontractsapi_arbitrum_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_arbitrum_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRateToEthspectrum_1inchcontractsapi_arbitrum_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_arbitrum_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_arbitrum_offchainoracle_call_oracles

Fetches list of oracles

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

Offchain Oracle · Avalanche

Functions

ReadgetRateToEthspectrum_1inchcontractsapi_avalanche_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_avalanche_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRatespectrum_1inchcontractsapi_avalanche_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_avalanche_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_avalanche_offchainoracle_call_oracles

Fetches list of oracles

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

Offchain Oracle · Base

Functions

ReadgetRatespectrum_1inchcontractsapi_base_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_base_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRateToEthspectrum_1inchcontractsapi_base_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_base_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_base_offchainoracle_call_oracles

Fetches list of oracles

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

Offchain Oracle · BNB Chain

Functions

ReadgetRatespectrum_1inchcontractsapi_bsc_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_bsc_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRateToEthspectrum_1inchcontractsapi_bsc_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_bsc_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_bsc_offchainoracle_call_oracles

Fetches list of oracles

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

Offchain Oracle · Ethereum

Functions

ReadgetRatespectrum_1inchcontractsapi_ethereum_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_ethereum_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRateToEthspectrum_1inchcontractsapi_ethereum_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_ethereum_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_ethereum_offchainoracle_call_oracles

Fetches list of oracles

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

Offchain Oracle · Polygon

Functions

ReadgetRatespectrum_1inchcontractsapi_polygon_offchainoracle_call_getRate

Gets the rate of the srcToken to dstToken

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_polygon_offchainoracle_call_getRate",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
dstTokenaddress
useWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
ReadgetRateToEthspectrum_1inchcontractsapi_polygon_offchainoracle_call_getRateToEth

Gets the rate of the srcToken to ETH

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "spectrum_1inchcontractsapi_polygon_offchainoracle_call_getRateToEth",
  "params": {
    "args": [
      "0x0000000000000000000000000000000000000001",
      false
    ]
  },
  "id": 1
}
Inputs
NameType
srcTokenaddress
useSrcWrappersbool
Outputs
NameType
weightedRate
Result is scaled by 10**(18 - srcDecimals + dstDecimals)
uint256
Try It
Demo endpoint: one request per second. Get your own endpoint for higher limits.
Readoraclesspectrum_1inchcontractsapi_polygon_offchainoracle_call_oracles

Fetches list of oracles

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