Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
RangoCrossChainProvider
Class RangoCrossChainProvider
Hierarchy
CrossChainProvider
RangoCrossChainProvider
Index
Constructors
constructor
Properties
type
api
Endpoint
api
Key
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Constructors
constructor
new
Rango
Cross
Chain
Provider
(
)
:
RangoCrossChainProvider
Returns
RangoCrossChainProvider
Properties
type
type
:
CrossChainTradeType
= CROSS_CHAIN_TRADE_TYPE.RANGO
Static
Readonly
api
Endpoint
api
Endpoint
:
"https://api.rango.exchange/basic"
= RANGO_API_ENDPOINT
Static
Readonly
api
Key
api
Key
:
"a24ca428-a18e-4e84-b57f-edb3e2a5bf13"
= RANGO_API_KEY
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
:
RangoCrossChainOptions
)
:
Promise
<
CalculationResult
>
Parameters
from:
PriceTokenAmount
<
EvmBlockchainName
>
toToken:
PriceToken
<
EvmBlockchainName
>
options:
RangoCrossChainOptions
Returns
Promise
<
CalculationResult
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
EvmBlockchainName
)
:
boolean
Parameters
blockchain:
EvmBlockchainName
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
Rango
Cross
Chain
Provider
constructor
type
api
Endpoint
api
Key
are
Supported
Blockchains
calculate
is
Supported
Blockchain
parse
Error
Generated using
TypeDoc