Docs
  • ⛵Lodestar Finance
  • Getting Started
    • 👨‍🌾User Guide
    • ❓FAQ
    • 🏗️Deployed Contracts
  • Documentation
    • 👩‍🔬Technical Overview
      • Supply
      • Collateral
        • Collateral Factors
      • Borrow
      • Interest
        • Interest Rate Model 1
        • Interest Rate Model 2
        • Interest Rate Model 3
        • Interest Rate Model 4
        • Interest Rate Model 5
      • Reserves
        • Reserve Factors
        • Rake
      • Liquidation
      • Staking
        • Emission Gauge Voting
      • Looping
    • 🤖Contracts
      • Lens
      • Comptroller
        • LODE Emissions
        • Events
        • Error Reporting
      • Oracles
      • Interest Rate Models
        • Constructor Arguments
      • lTokens
        • Market and Account State
        • Events
        • Error Reporting
    • ⚙️API
    • 🔐Security
    • 🗺️Roadmap
    • 🥚Inception
  • Tokenomics
    • 🧭LODE
  • Links
    • Twitter
    • Discord
    • Medium
    • Github
    • Lodestar Website
    • Lodestar dApp
    • Lodestar Liquidity Mining
    • LODE Token Claim for Aelin Supporters
Powered by GitBook
On this page
  1. Documentation

API

https://api.lodestarfinance.io/

PreviousError ReportingNextSecurity

Last updated 2 years ago

⚙️

GET endpoint which returns the circulating supply for the LODE token.

get

Returns the computed value from:20,000,000 - amount in reservior contract - amount in comptroller contract - amount in tokenfix swap contract - amount on each of the vesting contracts.

Responses
200
The circulating supply for the LODE token.
application/json
502
Gateway timeout error. The API is either down or overwhelmed with concurrent requests.
circulatingSupply
A float representing the current amount of circulating LODE tokens.
get
GET /circulatingSupply HTTP/1.1
Host: 
Accept: */*
{
  "circulatingSupply": [
    1
  ]
}

GET endpoint which returns the deployed contracts for the Lodestar protocol.

get
Responses
200
The deployed contracts used in the Lodestar protocol.
application/json
502
Gateway timeout error. The API is either down or overwhelmed with concurrent requests.
blockNumber
The arbitrum block number from when the contract was initially deployed.
contractAddress
The address for the returned deployed contract.
contractName
The name of the returned deployed contract.
contractSymbol
The symbol of the returned deployed contract
contractTxnHash
The transaction hash from when the contract was initially deployed.
network
The network the contract is deployed on.
timestamp
A timestamp of when the contract was initially deployed.
get
GET /deployedContracts HTTP/1.1
Host: 
Accept: */*
{
  "contractID": {}
}

GET endpoint which returns the cToken contracts used in the Lodestar protocol.

get
Responses
200
The cToken contracts used in the Lodestar protocol.
application/json
502
Gateway timeout error. The API is either down or overwhelmed with concurrent requests.
cTokenAddress
The address for the returned cToken contract.
cTokenID
An identifier used for recordkeeping for the returned cToken contract.
cTokenName
The name of the returned cToken contract.
cTokenSymbol
The symbol of the returned cToken contract.
get
GET /cTokens HTTP/1.1
Host: 
Accept: */*
{
  "cTokenID": {}
}

GET endpoint which returns the underlying token contracts used in the Lodestar protocol.

get
Responses
200
The underlying token contracts used in the Lodestar protocol.
application/json
502
Gateway timeout error. The API is either down or overwhelmed with concurrent requests.
underlyingTokenAddress
The address for the returned underlying token.
underlyingTokenID
An identifier used for recordkeeping for the returned underlying token.
underlyingTokenName
The name of the returned underlying token.
underlyingTokenSymbol
The symbol of the returned underlying token.
get
GET /underlyingTokens HTTP/1.1
Host: 
Accept: */*
{
  "underlyingTokenID": {}
}
  • GETGET endpoint which returns the circulating supply for the LODE token.
  • GETGET endpoint which returns the deployed contracts for the Lodestar protocol.
  • GETGET endpoint which returns the cToken contracts used in the Lodestar protocol.
  • GETGET endpoint which returns the underlying token contracts used in the Lodestar protocol.