Skip to main content

sdk.swap.newSwap(quote)

const swapFees = await sdk.swap.newSwap(quote);

Parameters:

  • quote: SwapQuote returned from sdk.swap.queryRate

Return Value:

{
"fee_sats": 4, // sats per vbyte
"fee": 1190 // total fees to be paid in sats
}