Interact with Cross Yield
Create deposit Tx for Cross Yield
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/deposit
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
amount*
String
The amount the user wants to deposit (in the lowest denomination)
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
{
"data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000000000b",
"gas": 719149
}{
// Response
}Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Create deposit tx for cross yield that will deposit the entire users balance
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/deposit-all
Path Parameters
contactAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Create zap in Tx for cross yield
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/zap-in
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
tokenInAmount*
String
The amount the user wants to zap in (in the lowest denomination)
crossYieldZapAddress*
String
The address of the cross yield zap contract
slippage*
number
A number representing a percentage for the maximum allowed slippage when performing the zap
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Create BNB zap in tx for Cross Yield
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/zap-in-bnb
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
tokenInAmount*
String
The amount the user wants to zap in (in the lowest denomination)
crossYieldZapAddress*
String
The address of the cross yield zap contract
slippage*
number
A number representing a percentage for the maximum allowed slippage when performing the zap
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example
Create Cross Yield withdraw tx
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/withdraw
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
tokenAmount*
String
The amount of farming tokens the user wants to withdraw (in the lowest denomination). Only one of tokenAmount or ibtAmount needs to be included
ibtAmount*
String
The amount of IBT tokens the user wants to withdraw (in the lowest denomination). Only one of tokenAmount or ibtAmount needs to be included
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Create Cross Yield withdraw all tx
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/withdraw-all
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Create Cross Yield harvest tx
POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/harvest
Path Parameters
contractAddress*
String
The smart contract address of the cross yield strategy contract
Request Body
user*
String
The user account($EVM Address)
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example
Read user deposited amount from the blockchain
POST https://api.hotcross.com/cross-yield/{contractAddress}/call/user-deposited
Path Parameters
contractAddress*
String
The smart contract address of the cross yield vault
Request Body
user*
String
The user account($EVM Address)
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Read pending fees in WBNB that will be given as a reward to the user for harvesting
POST https://api.hotcross.com/cross-yield/{strategyAddress}/call/pending-fees
Path Parameters
strategyAddress*
String
The smart contract address of the cross yield strategy contract
Request Body
chainId*
number
The chain id of the blockchain you want to read the pools from
Ethereum: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
Returns
data - string:The call data of the transaction, can be empty for simple value transfers.gas - number:The gas provided by the transaction
Postman example

Last updated