Links

Interact with Cross Pool

post
https://api.hotcross.com/
cross-pool/{poolAddress}/{pid}/tx/stake
Create Stake Tx
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-pool/{poolAddress}/{pid}/tx/unstake
Create Unstake Tx
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-pool/{poolAddress}/{pid}/tx/claim
Create Claim Tx
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-pool/{poolAddress}/{pid}/call/user-staked
Read user staked amount from the blockchain
Returns
POST request will return a stringvalue of the staked amount. (in wei)
Postman example
post
https://api.hotcross.com/
cross-pool/{poolAddress}/{pid}/call/pending-rewards
Read user pending rewards amount from the blockchain
Returns
POST request will return a string value of the amount of the pending rewards. (in wei)
Postman example
get
https://api.hotcross.com/
tvl/cross-pool/{poolAddress}
Read total value locked of given pool contract address
Responses
  • total - number: The total value locked in the reward pool
  • staking pool contract address - number: The value locked in a staking pool
Postman example
get
https://api.hotcross.com
/tokens/{address}/staked
Read the total amount staked for a token in all cross pools
Responses
  • totalStaked - string: the amount staked
Postman example