Skip to content
docs

ISwapProtocol

Defined in: protocols/swap.ts:44

The older same-chain swap interface. Every swap2 module implements it too; new code should use ISwap2Protocol.

quoteSwap(options): Promise<SwapQuote>

Defined in: protocols/swap.ts:48

Price a same-chain swap; nothing is signed.

SwapOptions

Promise<SwapQuote>


swap(options): Promise<SwapResult>

Defined in: protocols/swap.ts:46

Sign and broadcast a same-chain swap.

SwapOptions

Promise<SwapResult>