Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
BridgersCrossChainProvider
Class BridgersCrossChainProvider
Hierarchy
CrossChainProvider
BridgersCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Bridgers
Cross
Chain
Provider
(
)
:
BridgersCrossChainProvider
Returns
BridgersCrossChainProvider
Properties
Readonly
type
type
:
"bridgers"
= CROSS_CHAIN_TRADE_TYPE.BRIDGERS
Methods
are
Supported
Blockchains
are
Supported
Blockchains
(
fromBlockchain
:
BlockchainName
, toBlockchain
:
BlockchainName
)
:
boolean
Parameters
fromBlockchain:
BlockchainName
toBlockchain:
BlockchainName
Returns
boolean
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
<
EvmEncodeConfig
|
TronTransactionConfig
>
>
Parameters
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"
>
>
Returns
Promise
<
CalculationResult
<
EvmEncodeConfig
|
TronTransactionConfig
>
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"FANTOM"
|
"TRON"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"FANTOM"
|
"TRON"
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
Bridgers
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc