Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
RouterCrossChainProvider
Class RouterCrossChainProvider
Hierarchy
CrossChainProvider
RouterCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
get
Fee
Info
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Router
Cross
Chain
Provider
(
)
:
RouterCrossChainProvider
Returns
RouterCrossChainProvider
Properties
Readonly
type
type
:
"router"
= CROSS_CHAIN_TRADE_TYPE.ROUTER
Methods
are
Supported
Blockchains
are
Supported
Blockchains
(
fromBlockchain
:
BlockchainName
, toBlockchain
:
BlockchainName
)
:
boolean
Parameters
fromBlockchain:
BlockchainName
toBlockchain:
BlockchainName
Returns
boolean
calculate
calculate
(
from
:
PriceTokenAmount
<
EvmBlockchainName
>
, toToken
:
PriceToken
<
EvmBlockchainName
>
, 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
from:
PriceTokenAmount
<
EvmBlockchainName
>
toToken:
PriceToken
<
EvmBlockchainName
>
options:
Omit
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
&
Required
<
Pick
<
CrossChainOptions
,
"fromSlippageTolerance"
|
"toSlippageTolerance"
|
"slippageTolerance"
|
"gasCalculation"
|
"deadline"
|
"providerAddress"
|
"timeout"
|
"changenowFullyEnabled"
|
"enableTestnets"
>
>
Returns
Promise
<
CalculationResult
>
get
Fee
Info
get
Fee
Info
(
fromBlockchain
:
EvmBlockchainName
, providerAddress
:
string
, percentFeeToken
:
PriceTokenAmount
<
BlockchainName
>
, useProxy
:
boolean
)
:
Promise
<
FeeInfo
>
Parameters
fromBlockchain:
EvmBlockchainName
providerAddress:
string
percentFeeToken:
PriceTokenAmount
<
BlockchainName
>
useProxy:
boolean
Returns
Promise
<
FeeInfo
>
is
Supported
Blockchain
is
Supported
Blockchain
(
fromBlockchain
:
BlockchainName
)
:
boolean
Parameters
fromBlockchain:
BlockchainName
Returns
boolean
Static
parse
Error
parse
Error
(
err
:
unknown
)
:
RubicSdkError
Parameters
err:
unknown
Returns
RubicSdkError
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
rubic-
sdk
Router
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
get
Fee
Info
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc