HOTDOG Swap
Last updated
Last updated
POST
https://api.hotcross.com/hotdogswap/tx/swap-in
Name | Type | Description |
---|---|---|
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/hotdogswap/tx/swap-out
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
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: 1
BNB Smart Chain: 56
Avalanche C-Chain: 43114
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