Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
ChangenowCrossChainProvider
Class ChangenowCrossChainProvider
Hierarchy
CrossChainProvider
ChangenowCrossChainProvider
Index
Constructors
constructor
Properties
type
Methods
are
Supported
Blockchains
calculate
is
Supported
Blockchain
is
Supported
Proxy
Blockchain
parse
Error
Constructors
constructor
new
Changenow
Cross
Chain
Provider
(
)
:
ChangenowCrossChainProvider
Returns
ChangenowCrossChainProvider
Properties
Readonly
type
type
:
"changenow"
= CROSS_CHAIN_TRADE_TYPE.CHANGENOW
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
>
>
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
>
>
is
Supported
Blockchain
is
Supported
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"CELO"
|
"ETHW"
|
"BITGERT"
|
"OASIS"
|
"KLAYTN"
|
"SYSCOIN"
|
"ETHEREUM_CLASSIC"
|
"FLARE"
|
"IOTEX"
|
"THETA"
|
"BITCOIN_CASH"
|
"ZK_SYNC"
|
"PULSECHAIN"
|
"BASE"
|
"SOLANA"
|
"NEAR"
|
"BITCOIN"
|
"TRON"
|
"ICP"
|
"CARDANO"
|
"AION"
|
"ALGORAND"
|
"APTOS"
|
"ARDOR"
|
"ARK"
|
"ASTAR"
|
"COSMOS"
|
"BAND_PROTOCOL"
|
"BITCOIN_DIAMOND"
|
"BSV"
|
"BITCOIN_GOLD"
|
"CASPER"
|
"DASH"
|
"DECRED"
|
"DIGI_BYTE"
|
"DIVI"
|
"DOGECOIN"
|
"POLKADOT"
|
"MULTIVERS_X"
|
"FIO_PROTOCOL"
|
"FIRO"
|
"FLOW"
|
"HEDERA"
|
"HELIUM"
|
"ICON"
|
"IOST"
|
"IOTA"
|
"KADENA"
|
"KOMODO"
|
"KUSAMA"
|
"LISK"
|
"LITECOIN"
|
"TERRA"
|
"TERRA_CLASSIC"
|
"MINA_PROTOCOL"
|
"NANO"
|
"NEO"
|
"OSMOSIS"
|
"PIVX"
|
"POLYX"
|
"QTUM"
|
"THOR_CHAIN"
|
"RAVENCOIN"
|
"SIA"
|
"SECRET"
|
"STEEM"
|
"STRATIS"
|
"STACKS"
|
"SOLAR"
|
"TON"
|
"VE_CHAIN"
|
"WAVES"
|
"WAX"
|
"DX_CHAIN"
|
"E_CASH"
|
"NEM"
|
"STELLAR"
|
"MONERO"
|
"RIPPLE"
|
"TEZOS"
|
"VERGE"
|
"SYMBOL"
|
"ZCASH"
|
"HORIZEN"
|
"ZILLIQA"
|
"KAVA_COSMOS"
|
"FILECOIN"
|
"EOS"
|
"ONTOLOGY"
|
"XDC"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"CELO"
|
"ETHW"
|
"BITGERT"
|
"OASIS"
|
"KLAYTN"
|
"SYSCOIN"
|
"ETHEREUM_CLASSIC"
|
"FLARE"
|
"IOTEX"
|
"THETA"
|
"BITCOIN_CASH"
|
"ZK_SYNC"
|
"PULSECHAIN"
|
"BASE"
|
"SOLANA"
|
"NEAR"
|
"BITCOIN"
|
"TRON"
|
"ICP"
|
"CARDANO"
|
"AION"
|
"ALGORAND"
|
"APTOS"
|
"ARDOR"
|
"ARK"
|
"ASTAR"
|
"COSMOS"
|
"BAND_PROTOCOL"
|
"BITCOIN_DIAMOND"
|
"BSV"
|
"BITCOIN_GOLD"
|
"CASPER"
|
"DASH"
|
"DECRED"
|
"DIGI_BYTE"
|
"DIVI"
|
"DOGECOIN"
|
"POLKADOT"
|
"MULTIVERS_X"
|
"FIO_PROTOCOL"
|
"FIRO"
|
"FLOW"
|
"HEDERA"
|
"HELIUM"
|
"ICON"
|
"IOST"
|
"IOTA"
|
"KADENA"
|
"KOMODO"
|
"KUSAMA"
|
"LISK"
|
"LITECOIN"
|
"TERRA"
|
"TERRA_CLASSIC"
|
"MINA_PROTOCOL"
|
"NANO"
|
"NEO"
|
"OSMOSIS"
|
"PIVX"
|
"POLYX"
|
"QTUM"
|
"THOR_CHAIN"
|
"RAVENCOIN"
|
"SIA"
|
"SECRET"
|
"STEEM"
|
"STRATIS"
|
"STACKS"
|
"SOLAR"
|
"TON"
|
"VE_CHAIN"
|
"WAVES"
|
"WAX"
|
"DX_CHAIN"
|
"E_CASH"
|
"NEM"
|
"STELLAR"
|
"MONERO"
|
"RIPPLE"
|
"TEZOS"
|
"VERGE"
|
"SYMBOL"
|
"ZCASH"
|
"HORIZEN"
|
"ZILLIQA"
|
"KAVA_COSMOS"
|
"FILECOIN"
|
"EOS"
|
"ONTOLOGY"
|
"XDC"
is
Supported
Proxy
Blockchain
is
Supported
Proxy
Blockchain
(
blockchain
:
BlockchainName
)
:
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"ZK_SYNC"
|
"PULSECHAIN"
|
"BASE"
Parameters
blockchain:
BlockchainName
Returns
blockchain
is
"ETH"
|
"BSC"
|
"POLYGON"
|
"AVALANCHE"
|
"FANTOM"
|
"ARBITRUM"
|
"OPTIMISM"
|
"ZK_SYNC"
|
"PULSECHAIN"
|
"BASE"
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
Changenow
Cross
Chain
Provider
constructor
type
are
Supported
Blockchains
calculate
is
Supported
Blockchain
is
Supported
Proxy
Blockchain
parse
Error
Generated using
TypeDoc