CrossChainSwapManager
Swaps between Stellar, Solana and Monad, settled by NEAR Intents — client.crossChainSwaps.
Swaps between Stellar, Solana and Monad, settled by NEAR Intents — client.crossChainSwaps. Mainnet only: a dev key can list assets and quote, but creating answers 400 network_unsupported. Both legs on one chain is client.swaps with chain.
Methods
assets()
The tokens NEAR Intents can swap on Stellar, Solana and Monad.
assets(): Promise<CrossChainAssetData[]>Returns Promise<CrossChainAssetData[]>
quote()
A dry quote: output, minimum and commission. Persists nothing.
quote(options: QuoteCrossChainSwapOptions): Promise<CrossChainQuoteData>Parameters
options:QuoteCrossChainSwapOptions
Returns Promise<CrossChainQuoteData>
create()
A live quote: the deposit address, memo and wallet link that fund the swap.
create(options: CreateCrossChainSwapOptions): Promise<CrossChainSwap>Parameters
options:CreateCrossChainSwapOptions
Returns Promise<CrossChainSwap>
fetch()
fetch(id: string): Promise<CrossChainSwap>Parameters
id:string
Returns Promise<CrossChainSwap>
list()
list(options?: ListCrossChainSwapsOptions): Promise<CrossChainSwapPage>Parameters
options(optional):ListCrossChainSwapsOptions
Returns Promise<CrossChainSwapPage>
reportDeposit()
Report the transaction that paid the deposit address.
reportDeposit(id: string, txHash: string): Promise<CrossChainSwap>Parameters
id:stringtxHash:string
Returns Promise<CrossChainSwap>
Related
CrossChainSwap
A swap between two chains, settled by NEAR Intents — client.crossChainSwaps. Pay exactly amountIn of the origin asset to depositAddress…
DefindexManager
DeFindex vaults on Stellar — client.defindex. Served only where the deployment enables the DeFindex native plugin (PLUGINS_ENABLED=defindex); elsewhere every…