Hot Cross Documentation
ApplicationAuditsTwitterUpdates
  • 📌What is Hot Cross?
  • Guides
    • 👋Getting Started
    • 🦺Audits
    • 🔑Access Portal
    • ✉️Contact
    • 🤩Ongoing Hot Cross Events!
      • 🧧Hot Cross Lunar New Year Celebration
      • 🏆Winners announcement for Lunar New Year Celebration
      • Liquidity Farming
      • Pending Prize Distribution
      • How to Supply HOTCROSS to earn lending interest?
      • How to Open a HOTCROSS long position with OpenLeverage?
      • How to Stake Cross Bosses get KALM
  • Products
    • ↔️Cross Connect
      • MetaMask
      • Trust Wallet
      • SafePal
      • WalletConnect
      • Frontier
      • Coin98 Wallet
      • Binance Wallet
      • TokenPocket
      • Math Wallet
      • BitKeep
      • iToken
    • 🖼️NFT Staking
    • 😎Cross Bosses
      • How to buy Cross Bosses on Liquid Collectibles
      • How to buy Cross Bosses on PancakeSwap
      • How to buy Cross Bosses on tofuNFT
      • How to buy Cross Bosses on Treasureland
      • How to buy Cross Bosses on NFTrade
      • How to buy Cross Bosses on Mintverse
    • 🌉Cross Bridge
    • 🏊‍♀️Cross Pool
    • 🎯Cross Send
    • 🙇‍♀️Know Your Customer
    • 🚀Initial Hot Cross Offerings
    • 📋Hot Cross User Dashboard
    • 🚜Cross Yield
    • 🎨Cross Mint
    • 🔓Cross Vest
    • 🔐Cross Claim
    • 🎇Cross API
      • Ecosystem Information
      • Supply Information for $HOTCROSS
      • User Information
      • Interact with Cross Yield
      • Interact with Cross Pool
      • HOTDOG Swap
      • NFT Staking
      • Initial Hot Cross Offerings
      • Utility API methods
  • Fundamentals
    • 💼Team
    • 💪Partners
    • 🤝Backers
    • ✅Roadmap
    • 🐷Hot Cross Token
    • 🌭Hot Dog Token
    • 🗣️Social
    • 🕶️Cadets
    • 🎏Brand Assets
Powered by GitBook
On this page
  • Returns the current API version
  • Read the USD value of an LP token
  • Read the token the metadata json that contains all tokens used in Hot Cross platform
  1. Products
  2. Cross API

Utility API methods

PreviousInitial Hot Cross OfferingsNextTeam

Last updated 3 years ago

Returns the current API version

GET https://api.hotcross.com/version

{
  "version": "string"
}
{
    // Response
}

Responses:

  • version - string: The API version

Postman example

Read the USD value of an LP token

GET https://api.hotcross.com/lp

Query Parameters

Name
Type
Description

lptoken*

String

The smart contract address of the LP token

amount*

String

The amount of LP tokens

{
  "*": {
    "usd": 0
  }
}
{
    // Response
}
{
    // Response
}

Responses:

  • "*": The address of the LP token

  • usd - string: The USD value of the LP token

Postman example

Read the token the metadata json that contains all tokens used in Hot Cross platform

GET https://api.hotcross.com/tokens

Query Parameters

Name
Type
Description

chain*

number

The chain id of the blockchain we want to read the TokensMetadata from

{
  "*": {
    "image": "string",
    "name": "string",
    "decimals": 0,
    "symbol": "string"
  }
}
{
    // Response
}

Responses:

  • *: The smart contract address of the token

    • image - string: The token's image link

    • name - string: The token's name

    • symbol - string: The token's symbol

    • decimals - number: The token's decimals

Postman example

🎇