HOTDOG Swap
Create HOTDOG swap-in tx
POST
https://api.hotcross.com/hotdogswap/tx/swap-in
Request Body
Name | Type | Description |
---|---|---|
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: BNB Smart Chain: Avalanche C-Chain: |
Responses:
data - string:
The call data of the transaction can be empty for simple value transfersgas - 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
Name | Type | Description |
---|---|---|
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: BNB Smart Chain: Avalanche C-Chain: |
Responses:
data - string:
The call data of the transaction can be empty for simple value transfersgas - number:
The gas provided by the transaction
Postman example
Last updated