HOTDOG Swap

Create HOTDOG swap-in tx

POST https://api.hotcross.com/hotdogswap/tx/swap-in

Request Body

NameTypeDescription

user*

String

The user account

amount*

String

The amount that the user wants to swap in (in wei)

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": "string",
  "gas": 0
}

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

Create HOTDOG swap-out tx

POST https://api.hotcross.com/hotdogswap/tx/swap-out

Request Body

NameTypeDescription

user*

String

The user account

amount*

String

The amount that the user wants to swap out (in wei)

chainId*

String

The chain id of the blockchain you want to read the pools from

Ethereum: 1

BNB Smart Chain: 56

Avalanche C-Chain: 43114

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

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

Last updated