Skip to main content

SwapAndUnwrapEstimate

inputAmountstring
outputAmountBTCstring

Expected BTC output. Already net of every fee in teleswapFee — do not subtract them again.

minInputAmountBTCstring
maxInputAmountBTCstringnullable

Maximum input, in BTC. null when no maximum is set.

teleswapFee object
networkFeeBTCstring
Example: 0.00001000
protocolFeeBTCstring
Example: 0.00000000
lockerFeeBTCstring
Example: 0.00000100
thirdPartyFeeBTCstring
Example: 0.00000000
totalFeeBTCstring
Example: 0.00001100
SwapAndUnwrapEstimate
{
"inputAmount": "string",
"outputAmountBTC": "string",
"minInputAmountBTC": "string",
"maxInputAmountBTC": "string",
"teleswapFee": {
"networkFeeBTC": "0.00001000",
"protocolFeeBTC": "0.00000000",
"lockerFeeBTC": "0.00000100",
"thirdPartyFeeBTC": "0.00000000",
"totalFeeBTC": "0.00001100"
}
}