Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
SymbiosisCrossChainProvider
Class SymbiosisCrossChainProvider
Hierarchy
CrossChainProvider
SymbiosisCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Symbiosis
Cross
Chain
Provider
(
)
:
SymbiosisCrossChainProvider
Returns
SymbiosisCrossChainProvider
Properties
Readonly
type
type
:
"symbiosis"
= CROSS_CHAIN_TRADE_TYPE.SYMBIOSIS
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
<
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
from:
PriceTokenAmount
<
EvmBlockchainName
>
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
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"MUMBAI"
|
"BSCT"
|
"GOERLI"
|
"FUJI"
|
"SCROLL_SEPOLIA"
|
"ETH"
|
"BSC"
|
"POLYGON"
|
"POLYGON_ZKEVM"
|
"AVALANCHE"
|
"ARBITRUM"
|
"TELOS"
|
"OPTIMISM"
|
"BOBA"
|
"BOBA_BSC"
|
"METIS"
|
"ZK_SYNC"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"MANTA_PACIFIC"
|
"SCROLL"
|
"ZETACHAIN"
|
"BLAST"
|
"MERLIN"
|
"ROOTSTOCK"
|
"MODE"
|
"ZK_LINK"
|
"TAIKO"
|
"SEI"
|
"CORE"
|
"BAHAMUT"
|
"GRAVITY"
|
"BITCOIN"
|
"TRON"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"MUMBAI"
|
"BSCT"
|
"GOERLI"
|
"FUJI"
|
"SCROLL_SEPOLIA"
|
"ETH"
|
"BSC"
|
"POLYGON"
|
"POLYGON_ZKEVM"
|
"AVALANCHE"
|
"ARBITRUM"
|
"TELOS"
|
"OPTIMISM"
|
"BOBA"
|
"BOBA_BSC"
|
"METIS"
|
"ZK_SYNC"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"MANTA_PACIFIC"
|
"SCROLL"
|
"ZETACHAIN"
|
"BLAST"
|
"MERLIN"
|
"ROOTSTOCK"
|
"MODE"
|
"ZK_LINK"
|
"TAIKO"
|
"SEI"
|
"CORE"
|
"BAHAMUT"
|
"GRAVITY"
|
"BITCOIN"
|
"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
Symbiosis
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc