- Preparing search index...
- The search index is not available
rubic-sdk
Class CrossChainProviderAbstract
Methods
Abstract
calculate
- calculate(from: PriceTokenAmount<BlockchainName>, toToken: PriceToken<BlockchainName>, options: Omit<CrossChainOptions, "fromSlippageTolerance" | "toSlippageTolerance" | "slippageTolerance" | "gasCalculation" | "deadline" | "providerAddress" | "timeout" | "changenowFullyEnabled" | "enableTestnets"> & Required<Pick<CrossChainOptions, "fromSlippageTolerance" | "toSlippageTolerance" | "slippageTolerance" | "gasCalculation" | "deadline" | "providerAddress" | "timeout" | "changenowFullyEnabled" | "enableTestnets">>): Promise<CalculationResult>
-
Parameters
-
-
-
options: Omit<CrossChainOptions, "fromSlippageTolerance" | "toSlippageTolerance" | "slippageTolerance" | "gasCalculation" | "deadline" | "providerAddress" | "timeout" | "changenowFullyEnabled" | "enableTestnets"> & Required<Pick<CrossChainOptions, "fromSlippageTolerance" | "toSlippageTolerance" | "slippageTolerance" | "gasCalculation" | "deadline" | "providerAddress" | "timeout" | "changenowFullyEnabled" | "enableTestnets">>
Abstract
isSupportedBlockchain
- isSupportedBlockchain(fromBlockchain: BlockchainName): boolean
-
Returns boolean