Preparing search index...
The search index is not available
Elements Hooks
Elements Hooks
SquidAPI
Class SquidAPI
Index
Constructors
constructor
Properties
squid
Base
Url
squid
Integrator
Id
Methods
get
Status
get
StatusAPI
get
Swap
Route
get
Swap
RouteAPI
get
Token
Price
get
Tokens
initialize
Cache
is
Cache
Initialized
Constructors
constructor
new
SquidAPI
(
)
:
SquidAPI
Returns
SquidAPI
Properties
Static
squid
Base
Url
squid
Base
Url
:
string
Static
squid
Integrator
Id
squid
Integrator
Id
:
string
Methods
Static
get
Status
get
Status
(
transactionId
)
:
Promise
<
undefined
|
StatusResponse
>
Parameters
transactionId
:
string
Returns
Promise
<
undefined
|
StatusResponse
>
Static
get
StatusAPI
get
StatusAPI
(
args
)
:
Promise
<
undefined
|
StatusResponse
>
Parameters
args
:
GetStatusArgs
Returns
Promise
<
undefined
|
StatusResponse
>
Static
get
Swap
Route
get
Swap
Route
(
args
)
:
Promise
<
{
errors
:
SquidErrorType
[]
;
success
:
false
;
}
|
{
route
:
RouteData
;
success
:
true
;
}
>
Parameters
args
:
SwapRouteArgs
Returns
Promise
<
{
errors
:
SquidErrorType
[]
;
success
:
false
;
}
|
{
route
:
RouteData
;
success
:
true
;
}
>
Static
get
Swap
RouteAPI
get
Swap
RouteAPI
(
args
)
:
Promise
<
RouteResponse
>
Parameters
args
:
SwapRouteArgs
Returns
Promise
<
RouteResponse
>
Static
get
Token
Price
get
Token
Price
(
chainId
,
tokenAddress
)
:
Promise
<
number
>
Parameters
chainId
:
string
tokenAddress
:
string
Returns
Promise
<
number
>
Static
get
Tokens
get
Tokens
(
chainId
?
)
:
Promise
<
TokenData
[]
>
Parameters
Optional
chainId
:
string
Returns
Promise
<
TokenData
[]
>
Static
initialize
Cache
initialize
Cache
(
storage
)
:
void
Parameters
storage
:
IAsyncStorage
Returns
void
Static
is
Cache
Initialized
is
Cache
Initialized
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
squid
Base
Url
squid
Integrator
Id
get
Status
get
StatusAPI
get
Swap
Route
get
Swap
RouteAPI
get
Token
Price
get
Tokens
initialize
Cache
is
Cache
Initialized
Elements Hooks
Loading...