Utility API methods
Returns the current API version
GET
https://api.hotcross.com/version
{
"version": "string"
}
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
}
}
Responses:
"*"
: The address of the LP tokenusd - 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"
}
}
Responses:
*:
The smart contract address of the tokenimage - string:
The token's image linkname - string:
The token's namesymbol - string:
The token's symboldecimals - number:
The token's decimals
Postman example

Last updated