Search
Preparing search index...
The search index is not available
Home
ExchangeService
Class ExchangeService
Hierarchy
Service
ExchangeService
Index
Methods
build
Cross
Chain
Bridge
Transaction
destroy
find
Cross
Chain
Bridge
Routes
get
Advance
Routes
get
Advance
Routes
LiFi
get
Cross
Chain
Bridge
Supported
Chains
get
Cross
Chain
Bridge
Token
List
get
Cross
Chain
Bridge
Transaction
get
Cross
Chain
Quotes
get
Exchange
Offers
get
Exchange
Routers
Address
get
Exchange
Supported
Assets
get
LiFi
Status
get
Step
Transaction
init
Methods
build
Cross
Chain
Bridge
Transaction
build
Cross
Chain
Bridge
Transaction
(
dto
:
CrossChainBridgeRoute
)
:
Promise
<
CrossChainBridgeBuildTXResponse
>
Parameters
dto:
CrossChainBridgeRoute
Returns
Promise
<
CrossChainBridgeBuildTXResponse
>
destroy
destroy
(
)
:
void
Returns
void
find
Cross
Chain
Bridge
Routes
find
Cross
Chain
Bridge
Routes
(
dto
:
GetCrossChainBridgeRouteDto
)
:
Promise
<
CrossChainBridgeRoute
[]
>
Parameters
dto:
GetCrossChainBridgeRouteDto
Returns
Promise
<
CrossChainBridgeRoute
[]
>
get
Advance
Routes
get
Advance
Routes
(
fromTokenAddress
:
string
, toTokenAddress
:
string
, fromChainId
:
number
, toChainId
:
number
, fromAmount
:
BigNumber
, toAddress
?:
string
, allowSwitchChain
?:
boolean
, fromAddress
?:
string
, showZeroUsd
?:
boolean
, serviceProvider
?:
string
)
:
Promise
<
AdvanceRoutes
>
Parameters
fromTokenAddress:
string
toTokenAddress:
string
fromChainId:
number
toChainId:
number
fromAmount:
BigNumber
Optional
toAddress:
string
Optional
allowSwitchChain:
boolean
Optional
fromAddress:
string
Optional
showZeroUsd:
boolean
Optional
serviceProvider:
string
Returns
Promise
<
AdvanceRoutes
>
get
Advance
Routes
LiFi
get
Advance
Routes
LiFi
(
fromTokenAddress
:
string
, toTokenAddress
:
string
, fromChainId
:
number
, toChainId
:
number
, fromAmount
:
BigNumber
, toAddress
?:
string
, allowSwitchChain
?:
boolean
, fromAddress
?:
string
, showZeroUsd
?:
boolean
)
:
Promise
<
AdvanceRoutesLiFi
>
Parameters
fromTokenAddress:
string
toTokenAddress:
string
fromChainId:
number
toChainId:
number
fromAmount:
BigNumber
Optional
toAddress:
string
Optional
allowSwitchChain:
boolean
Optional
fromAddress:
string
Optional
showZeroUsd:
boolean
Returns
Promise
<
AdvanceRoutesLiFi
>
get
Cross
Chain
Bridge
Supported
Chains
get
Cross
Chain
Bridge
Supported
Chains
(
dto
?:
GetCrossChainBridgeSupportedChainsDto
)
:
Promise
<
CrossChainBridgeSupportedChain
[]
>
Parameters
Optional
dto:
GetCrossChainBridgeSupportedChainsDto
Returns
Promise
<
CrossChainBridgeSupportedChain
[]
>
get
Cross
Chain
Bridge
Token
List
get
Cross
Chain
Bridge
Token
List
(
dto
:
GetCrossChainBridgeTokenListDto
)
:
Promise
<
CrossChainBridgeToken
[]
>
Parameters
dto:
GetCrossChainBridgeTokenListDto
Returns
Promise
<
CrossChainBridgeToken
[]
>
get
Cross
Chain
Bridge
Transaction
get
Cross
Chain
Bridge
Transaction<T, P>
(
payload
:
P
)
:
Promise
<
T
>
Type parameters
T
P
Parameters
payload:
P
Returns
Promise
<
T
>
get
Cross
Chain
Quotes
get
Cross
Chain
Quotes
(
fromTokenAddress
:
string
, toTokenAddress
:
string
, fromChainId
:
number
, toChainId
:
number
, fromAmount
:
BigNumber
, serviceProvider
?:
CrossChainServiceProvider
, lifiBridges
?:
LiFiBridge
[]
, toAddress
?:
string
, fromAddress
?:
string
, showZeroUsd
?:
boolean
)
:
Promise
<
BridgingQuotes
>
Parameters
fromTokenAddress:
string
toTokenAddress:
string
fromChainId:
number
toChainId:
number
fromAmount:
BigNumber
Optional
serviceProvider:
CrossChainServiceProvider
Optional
lifiBridges:
LiFiBridge
[]
Optional
toAddress:
string
Optional
fromAddress:
string
Optional
showZeroUsd:
boolean
Returns
Promise
<
BridgingQuotes
>
get
Exchange
Offers
get
Exchange
Offers
(
fromTokenAddress
:
string
, toTokenAddress
:
string
, fromAmount
:
BigNumber
, fromChainId
:
number
, toAddress
?:
string
, fromAddress
?:
string
, showZeroUsd
?:
boolean
)
:
Promise
<
ExchangeOffer
[]
>
Parameters
fromTokenAddress:
string
toTokenAddress:
string
fromAmount:
BigNumber
fromChainId:
number
Optional
toAddress:
string
Optional
fromAddress:
string
Optional
showZeroUsd:
boolean
Returns
Promise
<
ExchangeOffer
[]
>
get
Exchange
Routers
Address
get
Exchange
Routers
Address
(
dto
:
ExchangeRouterAddress
)
:
Promise
<
string
[]
>
Parameters
dto:
ExchangeRouterAddress
Returns
Promise
<
string
[]
>
get
Exchange
Supported
Assets
get
Exchange
Supported
Assets
(
page
?:
number
, limit
?:
number
, ChainId
:
number
)
:
Promise
<
PaginatedTokens
>
Parameters
Default value
page:
number
= null
Default value
limit:
number
= null
ChainId:
number
Returns
Promise
<
PaginatedTokens
>
get
LiFi
Status
get
LiFi
Status
(
fromChainId
:
number
, toChainId
:
number
, txnHash
:
string
, bridge
?:
string
)
:
Promise
<
LiFiStatus
>
Parameters
fromChainId:
number
toChainId:
number
txnHash:
string
Optional
bridge:
string
Returns
Promise
<
LiFiStatus
>
get
Step
Transaction
get
Step
Transaction
(
selectedRoute
:
Route
)
:
Promise
<
StepTransactions
>
Parameters
selectedRoute:
Route
Returns
Promise
<
StepTransactions
>
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
Globals
Exchange
Service
build
Cross
Chain
Bridge
Transaction
destroy
find
Cross
Chain
Bridge
Routes
get
Advance
Routes
get
Advance
Routes
LiFi
get
Cross
Chain
Bridge
Supported
Chains
get
Cross
Chain
Bridge
Token
List
get
Cross
Chain
Bridge
Transaction
get
Cross
Chain
Quotes
get
Exchange
Offers
get
Exchange
Routers
Address
get
Exchange
Supported
Assets
get
LiFi
Status
get
Step
Transaction
init