Skip to main content

WrapAndSwapEstimate

minInputAmountBTCstring
maxInputAmountBTCstringnullable

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

inputAmountBTCstring
outputAmountstring

Expected output, in the output token's smallest unit. Already net of every fee in teleswapFee — do not subtract them again.

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