Interact with Cross Yield
Last updated
Last updated
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/deposit
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
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: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/deposit-all
Name | Type | Description |
---|---|---|
contactAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
user* | String | The user account($EVM Address) |
chainId* | number | The chain id of the blockchain you want to read the pools from
Ethereum: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/zap-in
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
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: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/zap-in-bnb
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
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: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/withdraw
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
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: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/withdraw-all
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
user* | String | The user account($EVM Address) |
chainId* | number | The chain id of the blockchain you want to read the pools from
Ethereum: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/tx/harvest
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield strategy contract |
Name | Type | Description |
---|---|---|
user* | String | The user account($EVM Address) |
chainId* | number | The chain id of the blockchain you want to read the pools from
Ethereum: |
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
POST
https://api.hotcross.com/cross-yield/{contractAddress}/call/user-deposited
Name | Type | Description |
---|---|---|
contractAddress* | String | The smart contract address of the cross yield vault |
Name | Type | Description |
---|---|---|
user* | String | The user account($EVM Address) |
chainId* | number | The chain id of the blockchain you want to read the pools from
Ethereum: |
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
POST
https://api.hotcross.com/cross-yield/{strategyAddress}/call/pending-fees
Name | Type | Description |
---|---|---|
strategyAddress* | String | The smart contract address of the cross yield strategy contract |
Name | Type | Description |
---|---|---|
chainId* | number | The chain id of the blockchain you want to read the pools from
Ethereum: |
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