NFT Staking
post
https://api.hotcross.com/
nft-staking/collections/{collectionAddress}/tx/approve
Create approve NFT collection tx
Responses:
  • 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/
nft-staking/{poolAddress}/{pid}/tx/deposit
Create a deposit NFT tx
Responses:
  • data - string: The call data of the transaction can be empty for simple value transfers
  • gas - number: The gas provided by the transaction
​
post
https://api.hotcross.com/
nft-staking/{poolAddress}/{pid}/tx/withdraw
Create a withdraw NFT tx
Responses:
  • data - string: The call data of the transaction can be empty for simple value transfers
  • gas - number: The gas provided by the transaction
​
post
https://api.hotcross.com/
nft-staking/{poolAddress}/{pid}/tx/claim-rewards
Create a claim reward tx
Responses:
  • 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/
nft-staking/{poolAddress}/{pid}/call/user-data
Read user data for an NFT pool from the blockchain
Responses:
  • amount - string: The staked NFTs amount
  • lastDepositBlock - string: The last block the user made a deposit. Used for the unstake delay time calculation
Postman example
post
https://api.hotcross.com/
nft-staking/{poolAddress}/{pid}/call/pending-rewards
Read user's pending rewards from the blockchain
Responses:
  • "string": the pending rewards
Postman example