Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
SquidrouterCrossChainProvider
Class SquidrouterCrossChainProvider
Hierarchy
CrossChainProvider
SquidrouterCrossChainProvider
Index
Constructors
constructor
Properties
type
api
Endpoint
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Squidrouter
Cross
Chain
Provider
(
)
:
SquidrouterCrossChainProvider
Returns
SquidrouterCrossChainProvider
Properties
Readonly
type
type
:
"squidrouter"
= CROSS_CHAIN_TRADE_TYPE.SQUIDROUTER
Static
Readonly
api
Endpoint
api
Endpoint
:
"https://api.0xsquid.com/v1/"
= 'https://api.0xsquid.com/v1/'
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
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"MOONBEAM"
|
"CELO"
|
"KAVA"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"SCROLL"
|
"BLAST"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"MOONBEAM"
|
"CELO"
|
"KAVA"
|
"LINEA"
|
"BASE"
|
"MANTLE"
|
"SCROLL"
|
"BLAST"
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
Squidrouter
Cross
Chain
Provider
constructor
type
api
Endpoint
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc