Interact with Cross Yield

Create deposit Tx for Cross Yield

POST https://api.hotcross.com/cross-yield/{contractAddress}/tx/deposit

Path Parameters

Request Body

{
    "data": "0xb6b55f25000000000000000000000000000000000000000000000000000000000000000b",
    "gas": 719149
}

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

Request Body

{
    "data": "0xde5f6268",
    "gas": 690738
}

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

Request Body

{
    "data": "0x72f8b6cd0000000000000000000000009bff65a94c56f7173406f9b417b2bb81bf233965000000000000000000000000000000000000000000000000840a31eb4962a8e6000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000000000000000000000000000002386f26fc10000",
    "gas": 721304
}

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

Request Body

{
  "data": "string",
  "gas": 0
}

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

Request Body

{
    "data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000000064",
    "gas": 190448
}

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

Request Body

{
    "data": "0x853828b6",
    "gas": 325413
}

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

Request Body

{
  "user": "string",
  "chainId": 56
}

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

Request Body

 4093514643865158608020

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

Request Body

2783680589370196

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